3 ms·
Look at every single discussion about Electron ;) "It's a basic tool that sits hidden in my tray 99.9% of the time and it should not use 500MB of memory when i
by wink 2y ago
Look at every single discussion about Electron ;)
"It's a basic tool that sits hidden in my tray 99.9% of the time and it should not use 500MB of memory when it's not doing anything" is part of product quality.
- elktown 2y agoOnly 500MB? Now you're being charitable.
- marcosdumay 2y agoElectron adds about 500MB to your memory requirements. If your software uses 2GB like Teams, the rest is on you.
- elktown 2y agoSounds like schooling your even drunker mate 8 pints deep into a weekend bender.
- o11c 2y agoPoorly-chosen environments also apply a multiplier to actual application memory. Pointer-oriented languages as a rule give a 2x memory-size multiplier to everything, though higher is possible depending on how dynamic they are. I suspect that the DOM and JS runtimes add a significant multiplier to the UI memory cost.
- deleted 2y ago[deleted]
- foldr 2y agoUsing 500MB of memory while not doing anything isn’t really a problem. If RAM is scarce then it will get paged out and used by another app that is doing something.
- Borg3 2y agoBorg3 slaps foldr with a spinning rust. And now more seriously ;) Swapping aint fun. Sure, if it needs to happen, its better that out of memory error or crash, but still. Its not excuse to baloon everything.. And here, is my memory stats, while writing reply: Commit: 288.13M (1%); Free Memory: 15.43G (96%)
- foldr 2y agoSwapping is perfectly fine for the case where an app that has remained unused for a significant period of time starts being used again. It may even be faster than having the app manually release all of the memory it’s allocated and then manually reallocating it all again on user input (which is presumably what the alternative would be, if the complaint is only about the app’s memory usage when in an inactive state). Free RAM is just RAM that’s doing nothing useful. Better to fill it with cached application states until you run out.
- vacuity 2y agoAn application that genuinely uses less RAM at any point of its execution, whether that's measured by maximum RSS, average RSS, whatever, is still better. Then you can have more apps running at the same level of swapping. It's true that if you have a lot of free RAM, there's no need to split hairs. But what about when you don't have a lot? I was under the impression that computers should handle a billion Chrome tabs easily. Or like, y'know, workloads that people actually use that aren't always outlandish stress tests.
- foldr 2y agoSure, the ideal app uses no resources. But it really doesn’t matter how much allocated memory an app retains when in an unused state (if you’re running it on a modern multitasking OS). If there’s any memory pressure then those pages will get swapped out or compressed, and you won’t really notice because you’re not using the app.
- 2y ago