Re:Tauri: Rust-based Electron alternative releases beta
by gilrain on Friday May 14, 2021 @01:59PM
(#27157510)
Now it's a browser that was probably already in memory for one reason or another, not necessarily a process per Tauri app.
[ Parent
| on HN ]
Re:Tauri: Rust-based Electron alternative releases beta
by fabiospampinato on Friday May 14, 2021 @02:17PM
(#27157777)
That's a good point, that will save you some memory unless you happen to be in a scenario where for example you use Chrome under macOS and a single Tauri app, which would then use Safari under the hood, meaning still multiple browsers.
But I think that would save much less memory than people think. A bare-bones hello-world Electron app consumes about ~100MB of RAM (rough figure since it depends on many factors), maybe you can bring that down to ~20MB by sharing a common browser instance (I doubt it, a Chrome tab takes like ~50MB for me right now), but if your app uses 1GB+ of memory that has way more to do with how the app is coded than by having to spawn another instance of the browser. Basically you won't get a memory hungry app consuming 10x less memory by running it as a website.