This repository was archived by the owner on Mar 3, 2023. It is now read-only.
Repository navigation
Disable periodic serialization for buffers > 2MB - #13583
Merged
nathansobo merged 1 commit intoJan 11, 2017
Merged
Conversation
Writing so much data to IndexedDB is blocking the main thread for perceptible amounts of time. A patch-based representation of the modified state could allows us to pay only for what has changed, but is too complex to justify implementing right now to support full crash recovery for large files. Signed-off-by: Max Brunsfeld <[email protected]>
nathansobo
force-pushed
the
ns-skip-periodic-serialization-of-huge-buffers
branch
from
January 10, 2017 22:55
c81ebcd to
dea7cc2
Compare
Contributor
Author
|
We've decided to do more work to enable modifications on larger files to be persisted, but it will take a while to reach the light of day. I still think pause free editing is worth disabling this in the meantime. |
6 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The overhead of writing large amounts of data to IndexedDB is blocking the main thread for perceptible amounts of time, even though the API is asynchronous. A patch-based representation of the modified state could allows us to pay only for what has changed, but is too complex to justify implementing right now to support full crash recovery for large files. So instead, we'll only serialize the full text of files > 2MB on graceful shutdown of the window. Periodic serialization, which interleaves with fine-grained user interaction, will be limited to smaller files to ensure we don't make the editor unresponsive.
/cc @maxbrunsfeld