Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(snapshots): incremental snapshots (#5213)
- Switch from html to json ml format. - Allow node reuse between snapshots with `[nSnapshotsBefore, nodeWithIndexM]`. - Service worker now lazily serializes snapshot chunks into a single html. This decreases total snapshot size on random scripts ~10x. This also decreases snapshot collecting time on mostly static pages to ~0.3ms. Unfortunate downside for now is that we have to intercept `Element.prototype.attachShadow` to invalidate nodes. This also temporary breaks scroll restoration. Needs more research.
- Loading branch information
Showing
5 changed files
with
303 additions
and
190 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Oops, something went wrong.