-
Notifications
You must be signed in to change notification settings - Fork 27.9k
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
Avoid sync fs-calls when opening windows #16381
Comments
related to #15455 |
Backup service is no longer writing to its metadata on startup in a way that it blocks the startup. Previously we had:
This showed up as largest block in profiles for me when looking for main process and seems to result in a significant reduction from todays exploration build: Tracing the remaining sync fs operations, we still do, they seem not to be significant (profile attached below):
These remaining ones are not in an async context and I wonder how far we want to push it. I think changing the remaining ones would require us to change to Attached profile, I was searching for |
And found some more that can actually be fixed, either by removing or since they are in an async context: |
Ended up making opening windows async, and thus was able to remove the sync fs calls. We still need to read |
Thanks @bpasero - This issue almost turned 6 🍰 and yielded good speed up |
Like this (already in an async context) and this
Update (bpasero):
statSync
files on startup to figure out e.g. the identifier (here, here) but these methods are not in an async context unfortunatelyThe text was updated successfully, but these errors were encountered: