3 ms·
Did you notice any CPU/Memory advantages in switching to Tauri over Electron?
by metadaemon 4y ago
Did you notice any CPU/Memory advantages in switching to Tauri over Electron?
- dceddia 4y agoMemory usage seems to be lower with Tauri but I don’t have any hard numbers. CPU is better largely because of finding a way to draw video frames that involves less copying. It’s a (frankly, messy) hack that uses a native window/view positioned in the right place that I can render directly to as a GPU surface, which mayyybe could’ve been done with Electron with a lot of mucking around in Chromium internals, but Tauri makes it much easier to access platform APIs. I know for certain that there are still performance gains to be had, but I’m also confident that they’re 100% in my control - Tauri and the WebView aren’t the bottleneck. That was one of my big fears with Electron – what if something is slow as molasses and it’s just stuck that way? I haven’t run into a wall like that with Tauri yet and at this point I don’t expect I will.