Make the save speed the fastest #1826
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. |
Beta Was this translation helpful? Give feedback.
-
|
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. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Can Rust or WebAssembly be used to speed up webpage saving
Beta Was this translation helpful? Give feedback.
All reactions