-
-
Notifications
You must be signed in to change notification settings - Fork 446
Reduce CPU and disk usage during Program plugin init #2123
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
Reduce CPU and disk usage during Program plugin init #2123
Conversation
No longer await on first run (no cache detected) to speed up boost 30 hours cache life
I remember one reason the reindex is performed at startup is that if flow is closed, and someone else install a program during it, and open flow, the new installed program will not shown up. |
Yeah truly. But for many users they just set Flow to auto startup and leave it running all day so any installation should be detected and triggering an reindex. |
Though I agree reindex every time startup is kindly very expensive....since now we have file watcher maybe this change it good. |
Yes I agree. Reindex at startup somehow make restart a painful thing to do. |
Maybe an option to choose force index on startup (default should be false)? And an option to set expiration time? |
@taooceros would file watcher trigger an update since it will have detected change? |
No. File watcher only watches changes when Flow is running. |
You are right...it's too annoying when debugging.... |
Changes
Tests