Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I want to disable copyq faster in scripts. #2676

Open
yisuixinq opened this issue Apr 16, 2024 · 2 comments
Open

I want to disable copyq faster in scripts. #2676

yisuixinq opened this issue Apr 16, 2024 · 2 comments
Labels
feature New feature request

Comments

@yisuixinq
Copy link

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.

@yisuixinq yisuixinq added the feature New feature request label Apr 16, 2024
@laur89
Copy link

laur89 commented Apr 18, 2024

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

@hluk
Copy link
Owner

hluk commented Apr 18, 2024

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature request
Projects
None yet
Development

No branches or pull requests

3 participants