-
Notifications
You must be signed in to change notification settings - Fork 269
Commit
## Description #544 explores a full Emscripten OPFS filesystem backend, but there is one last issue I may not be able to figure out before my Sabbatical (June 26th - Sep 26th). This PR attempts another approach I should be able to ship. Namely, it synchronizes MEMFS changes to OPFS and restores them after a page refresh. The main idea is: 1. Keep track of all modified files 2. Only sync files on that list OPFS is only supported in Chrome-based browsers at the moment like Edge, Android browser. Safari and Firefox users won't be able to benefit from this feature yet ## Performance * Full WordPress OPFS->MEMFS: ~340 ms * Full WordPress MEMFS->OPFS: ~506 ms * Typical sync MEMFS->OPFS: 2.5 ms ## Other explored approaches This approach failed: 1. Compare last modified time 2. Copy MEMFS files to OPFS if they were updated more recently `mtime` doesn't bubble up through directories and comparing all files is too slow.
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.