41 ms·
No, compared to everything else in those apps. i.e. if they are writing extremely bloated Electron apps why would the native version be less slow and bloated? I
by ywvcbk 7mo ago
No, compared to everything else in those apps. i.e. if they are writing extremely bloated Electron apps why would the native version be less slow and bloated? I mean Electron's overhead is mostly fixed (it's still a lot but its possible to keep memory usage we below 1 GB or even 500 BB even for more complex applications).
- raw_anon_1111 7mo agoA native app that compiles to machine language and uses shared system libraries is by definition going to take less memory and resources than code + web browser +Javascript VM + memory to keep JITd byte code. Write a “Hello World” in C++ that pops up a dialog box compared to writing the same as an Electron app.
- maattdd 7mo agoThis is not what "by definition" means.
- raw_anon_1111 7mo agoA - your code B - a heavy runtime that is greater than 0 C - system libraries By definition A + C < A + B + C
- maattdd 6mo agoAgain, this is not by definition. This is by deduction.
- ywvcbk 7mo agoYes, exactly, that's what I said. There is significant overhead but is it the only or the main reason why these apps are so slow and inefficient? It's perfectly easy to write slow and inefficient code in C++ as well...
- raw_anon_1111 7mo agoExactly how would you write a program in C that could possibly be as bloated as adding an entire browser engine + Javacript runtime?
- Induane 7mo agoA highly inefficient render loop. I've seen people commit absolute crimes rendering text in game engines.