Skip to content

Conversation

@dummdidumm
Copy link
Member

Due to the refactoring in #917, documents were reread from disk every time when getting a snapshot. This resulted in worse performance and introduced inconsistencies because "openDocument" of the DocumentManager was called over and over again with potentially outdated content, resulting in buggy, seemingly random behavior.
This fix reverts that part of #917 which was accidentally introduced and only loads documents from disk if a snapshot doesn't already exist.

#970

Due to the refactoring in sveltejs#917, documents were reread from disk every time when getting a snapshot. This resulted in worse performance and introduced inconsistencies because "openDocument" of the DocumentManager was called over and over again with potentially outdated content, resulting in buggy, seemingly random behavior.
This fix reverts that part of sveltejs#917 which was accidentally introduced and only loads documents from disk if a snapshot doesn't already exist.
@dummdidumm dummdidumm merged commit 7ddd029 into sveltejs:master Apr 27, 2021
@dummdidumm dummdidumm deleted the fix-document-updates branch April 27, 2021 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant