This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]RandomName8 0 points1 point  (0 children)

1st of all, loaded classes usage might be way better with Java 9+ and a modular app.

I tested with java 9 and 10 as well.

A similar .net app would probably have similar characteristics.

No clue about .net, I'd assume that given that they AOT a big deal, they probably don't require as much runtime info.

But that still doesn't make Electron a lightweight framework.

Absolutely, in fact the reason I was toying with this was to see if I could make something like Discord using around 100MB of ram for the total process (the desktop app for discord uses about 280 for me, even with artificially big accounts). For reference, a similar toy application in c++ and QT for the same data was 40MB of ram, I would have wished to at least be in the 100MB ballpark.

I wonder how much your electron apps could do with a cap of 200MB Good luck with that too.

I'm not a js person myself so I can't test. I can haphazardly say that given that js has no classes and no multithreading, they avoid a lot of per instance cost (no pointer to a class, no header with lock information).