-
Notifications
You must be signed in to change notification settings - Fork 130
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: definitely reduce scheduler task check to 10 second interval #435
base: main
Are you sure you want to change the base?
Conversation
Is there any chance of creating a test that the scheduler actually works? E.g. like running a |
d2a158d
to
a6cfb73
Compare
Yes it would have to use zsh/zpty module. For example autosuggestions uses
it to capture completion candidates.
… |
@psprint Could you elaborate on how to test this? |
@vladdoster I would do: zi is-snippet wait for /dev/null and observe the delay to see that it oscillates around 10 seconds. Looking for the under prompt message. |
@psprint Does that test the happy path of testing the wait ice, i.e. that a plugin with that ice actually gets loaded? |
Yes. You can do some atclone'touch x' to easy test. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please write a zunit test to verify this works.
I want to merge this. Can you elaborate on the following comment?:
Am I following correctly the test would be validating time difference ± |
Description
The condition in #429 was reversed, it should say
[[ -z … ]]
not[[ -n ${ZINIT_TASKS:#<no-data>} ]] && return 0
. Now after fixing this it should be working without problems.Motivation and Context
To fix the long duration problem with the scheduler / CPU usage.
Related Issue(s)
Related issue: #429
How Has This Been Tested?
Types of changes
Checklist: