-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
localStorage access is slow #18439
Comments
For more reasons than just performance, local storage should be file based. |
How is this upstream? Surly local storage is file based (how else should it work) the problem is that we need to load all of local storage to read a single value. That the local storage API and I don't see that changing. I think we should just stop using locale storage and implement our own storage mechanism. |
Simple experiment I ran is to start with I'd say this one of the last low hanging items that can save a significant chunk of startup performance |
@bpasero Unrelated question: what does |
@jrieken I think it is just the first guy who uses local storage that pays the price of it. If I remove that call, the next one hits it right after: The cleanup is useful in cases where a folder was deleted and then recreated with the same name. We store the |
Via #64719, we are not using |
scripts\code.sh
index.html
reading the theme from local storage (I assume the times vary with the size/history of the workspace)CPU-20170112T105633.cpuprofile.zip
The text was updated successfully, but these errors were encountered: