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

perf: speed up default register determination #207

Merged
merged 1 commit into from
Jan 17, 2025
Merged

Conversation

lljbash
Copy link
Contributor

@lljbash lljbash commented Jan 17, 2025

provider#clipboard#Executable can be very slow on remote machines (the following profile shows an execution time of 5 seconds).

image

I swapped the order in utils.get_default_register, eliminating unnecessary calls to provider#clipboard#Executable when the clipboard option is unset. This change significantly reduces both put latency and startup time.

@gbprod
Copy link
Owner

gbprod commented Jan 17, 2025

Seems a goods idea !

@gbprod gbprod merged commit d2696b3 into gbprod:main Jan 17, 2025
3 checks passed
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.

2 participants