-
Notifications
You must be signed in to change notification settings - Fork 527
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
Consider slowing down refresh speed on explorer window #1351
Comments
Is there a reason for needing to slow down the refresh rate? I would prefer we keep it at 1 second so it is as accurate as possible. If there is a tech/perf reason I would think going to 2 seconds would still be acceptable. |
Yes, planning to: #1352 |
Great! 👍 |
My 2 cents: we should make the refresh rate a configuration parameter, incl. allowing auto-refresh to be turned off (there is option to manually refresh already). |
@karolz-ms there's already a setting Regarding the motivation of this issue, another mitigation could be to collapse the network/volume explorers by default. I bet plenty of people leave those open, causing us to poll on them, but only actually use the containers/images explorers. Unfortunately, not sure if VS Code lets us specify a default expanded/collapsed state |
We might also consider switching to a "push" model rather than a "pull/poll" model. We do this for CTW in VS where the containers/images trees are refreshed only when relevant events are reported by Docker, rather than on any specific polling interval. (The refresh is further throttled so that refresh only happens x number of milleseconds after no more relevant events have been received.) This may not work for all nodes in the tree, but it might reduce the total number of calls to Docker that need to be made during a refresh. |
Dockerode does support this with the getEvents method. It returns JSON that could probably tell us which section to refresh, or let us avoid refreshing entirely if we want to get more advanced. |
Related to #1292 , #1225.
@philliphoff @BigMorty @EricJizbaMSFT @StephenWeatherford @fiveisprime How would you guys feel about slowing down the explorer window's refresh rate from the current 1 second to something longer? Two? Three? Five?
The text was updated successfully, but these errors were encountered: