Before creating a new issue, see list of known
issues.
Describe the bug
A noticeable performance hit is observed when using the Encryption plugin that lasts several minutes and causes the application to freeze.
Expected behavior
The Preferences window closes and the settings take effect
Screenshots
I could probably provide a video/screen recording on demand
Version, OS and Environment
(Get details from copyq version command if possible.)
Application Version 7.1.0-20-g19e9dd1c
OS Microsoft Windows [Version 10.0.22621.2428]
Additional context
I believe the issue is a bottleneck between gpg and CopyQ that occurs when CopyQ is launched (while the encryption plugin is enabled) or after clicking Ok/Apply from the preferences window when the encryption plugin is enabled and there's a significant number of items being encrypted/decrypted. I'm not sure what exactly is happening in the background that causes this, but I suspect CopyQ is calling gpg to load/decrypt all of the items in the encrypted tab into memory which causes CopyQ to lock up until that operation has finished. It's also worth noting I saw similar performance prior to the recent rewrite of the plugin, to clarify this behavior isn't new.
At minimum, additional details in CopyQ's docs as it applies to the encryption plugin about what exactly is causing this performance bottleneck and what can be done to mitigate it would be appreciated. Adding asynchronous support (if possible, see https://stackoverflow.com/questions/59667777/truly-asynchronous-file-io-in-c) would be greatly appreciated.
I fail to reproduce the issue with large amount of larger items being encrypted. The delay of saving the whole tab again is just a few seconds on my system.
Before creating a new issue, see list of known issues.
Describe the bug A noticeable performance hit is observed when using the Encryption plugin that lasts several minutes and causes the application to freeze.
To Reproduce Steps to reproduce the behavior:
Expected behavior The Preferences window closes and the settings take effect
Screenshots I could probably provide a video/screen recording on demand
Version, OS and Environment (Get details from
copyq version
command if possible.)Additional context I believe the issue is a bottleneck between gpg and CopyQ that occurs when CopyQ is launched (while the encryption plugin is enabled) or after clicking Ok/Apply from the preferences window when the encryption plugin is enabled and there's a significant number of items being encrypted/decrypted. I'm not sure what exactly is happening in the background that causes this, but I suspect CopyQ is calling gpg to load/decrypt all of the items in the encrypted tab into memory which causes CopyQ to lock up until that operation has finished. It's also worth noting I saw similar performance prior to the recent rewrite of the plugin, to clarify this behavior isn't new.
At minimum, additional details in CopyQ's docs as it applies to the encryption plugin about what exactly is causing this performance bottleneck and what can be done to mitigate it would be appreciated. Adding asynchronous support (if possible, see https://stackoverflow.com/questions/59667777/truly-asynchronous-file-io-in-c) would be greatly appreciated.