this post was submitted on 02 Oct 2024
102 points (100.0% liked)

Programming

17313 readers
157 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities [email protected]



founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 9 points 1 month ago* (last edited 1 month ago) (3 children)

Does anyone know where to find unbiased, representative comparisons of memory usage between Tauri and Electron?

[–] [email protected] 9 points 1 month ago* (last edited 1 month ago) (2 children)

Here for V1: https://www.levminer.com/blog/tauri-vs-electron

Note that tauri is not bundling entire browser in binary, it's using WebView of operating system instead. Therefore any comparison should be done on machine that will run your code.

[–] [email protected] 2 points 1 month ago

I think the WebView it uses on linux is webkit2gtk. I would expect that to be similar to Electron, but measurements would be better than guesses.

[–] TCB13 1 points 1 month ago

Now here comes one of the disadvantages of Tauri (or its biggest advantage, I guess it depends on you). In your Electron app you write your app backend in JavaScript, because Electron uses the Node.js runtime. Tauri on the other hand is written in Rust. Now if you know Rust you're probably happy, but if you have to learn Rust from scratch (like me) you are going to face some issues.

If you’re building an app that does not require a backend then Tauri very quickly becomes the choice.

I know that some stuff really requires a separate backend (heavy file manipulation etc) but at the same time browsers are progressing a lot and a lot of apps can be created without using a backend, just relaying on the browser engine as is.