Skip to content

Precomputed label and checksum for file and text clipboard items#50

Merged
sliverc merged 1 commit intodiodon-dev:masterfrom
sliverc:building_menu_perf_text
Feb 25, 2026
Merged

Precomputed label and checksum for file and text clipboard items#50
sliverc merged 1 commit intodiodon-dev:masterfrom
sliverc:building_menu_perf_text

Conversation

@sliverc
Copy link
Member

@sliverc sliverc commented Feb 25, 2026

This change improves the code in the following way:

  • when generating label only the label is cleaned up by new lines not the whole text
  • checksum is only computed once per clipboard item and memorized
  • label is only computed once per clipboard item and memorized

This change improves the code in the following way:

* when generating label only the label is cleaned up by new lines
  not the whole text
* _checksum is only computed once per clipboard item and memorized
* _label is only computed once per clipboard item and memorized
@sliverc sliverc merged commit 6d8bac7 into diodon-dev:master Feb 25, 2026
2 checks passed
@sliverc sliverc deleted the building_menu_perf_text branch February 25, 2026 19:06
EricBlanquer added a commit to EricBlanquer/diodon that referenced this pull request Mar 14, 2026
…don-dev#50)

This change improves the code in the following way:

* when generating label only the label is cleaned up by new lines
  not the whole text
* _checksum is only computed once per clipboard item and memorized
* _label is only computed once per clipboard item and memorized
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant