Open yisuixinq opened 2 months ago
Doesn't replicate on my machine:
$ hyperfine --warmup 5 'copyq disable; copyq enable'
Benchmark 1: copyq disable; copyq enable
Time (mean ± σ): 53.6 ms ± 12.1 ms [User: 21.9 ms, System: 20.4 ms]
Range (min … max): 40.6 ms … 90.2 ms 46 runs
$ hyperfine --warmup 5 'copyq disable'
Benchmark 1: copyq disable
Time (mean ± σ): 26.0 ms ± 9.2 ms [User: 11.9 ms, System: 13.7 ms]
Range (min … max): 15.8 ms … 43.7 ms 131 runs
copyq 7.1.0
, running on debian testing, cpu ryzen 4750U
Runs fast for me too. You can investigate further by enabling debug logs (or even more verbose logs with COPYQ_LOG_LEVEL=TRACE
), restart the app, run copyq disable
(e.g. in Action dialog - F5 shortcut) and check the logs (F12 shortcut).
I would like to temporarily disable copyq in a script, but whether I send a shortcut or use the "copyq disable" command, the software response is a bit slow, it takes about 1500ms under Intel i7-1065G7 CPU and 200ms under Core 12 CPUs, is there any other faster way to disable copyq, I I hope the response speed can be within 100ms.