hluk / CopyQ

Clipboard manager with advanced features
GNU General Public License v3.0
8.47k stars 436 forks source link

Performance with large single-lined items #804

Closed m4r71n closed 6 years ago

m4r71n commented 6 years ago

Hi @hluk, once again thank you very much for your awesome CopyQ. It is such a productivity booster and I cannot live without CopyQ anymore! But I think there is a performance issue with large single-lined items. To reproduce, copy a big image encoded as DataURI (like this one) into the clipboard and paste the item a few times within CopyQ. Each paste will take about a second and you will immediately notice that the selection of the items via keyboard will slow down and also searching and clearing the search feels unresponsive.

CopyQ 3.1.0 (copyq-v3.1.0.zip) on Windows 10 Pro x64

hluk commented 6 years ago

Fixed by cropping long lines.

I'll probably release new version very soon.

m4r71n commented 6 years ago

With the latest build CopyQ is much faster. Thank you very much!

hluk commented 6 years ago

I added few other fixes to improve performance (e53a8d9d5dec3989ce0d289c79d576af2e814b8e, 03e1954e256b439e9f4179db56a2e97b8abc4524).

Qt classes QTextDocument and QTextEdit can be quite slow when it comes to displaying and editing large amount of text, large lines or lots of nested HTML tags.