Make the save speed the fastest #1826
okrightall
started this conversation in
Ideas
Replies: 2 comments
|
Before rewriting everything to Rust, could you try to unzip and import the attached settings (via the options page in SingleFile)? Maybe this could be fast enough. |
0 replies
|
More seriously, the main cost when saving a page is DOM manipulation and fetching/inlining resources. Rust or WebAssembly can help when you have pure CPU-heavy algorithms (e.g. image codecs, parsers) with large, in‑memory data, but they don’t have direct access to the DOM or network in a browser extension. In practice, most of SingleFile’s work is already limited by DOM operations, network latency, not by raw JavaScript execution speed. That means rewriting the core in Rust/Wasm would add a lot of complexity but bring little real‑world speedup for typical pages. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Can Rust or WebAssembly be used to speed up webpage saving
All reactions