Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Apps can't be 100MB on modern displays, because there are literally too many pixels involved.

Not that I know what's going on in an Electron app heap (because there's no inspection tools afaik), but I'm guessing much of it is compiled code and the rest is images and text layout related.





> Apps can't be 100MB on modern displays, because there are literally too many pixels involved.

What? Are you talking about assets? You'd need a considerable amount of very high-res, uncompressed or low-compressed assets to use up 100MB. Not to mention all the software that uses vector icons, which take up a near-zero amount of space in comparison to raster images.

Electron apps always take up a massive amount of space because every separate install is a fully self-contained version of Chromium. No matter how lightweight your app is, Electron will always force a pretty large space overhead.


No, I'm talking about window buffers. This is about memory not disk space.

I was talking about RAM - in that running Chromium on its own already has a preset RAM penalty due to how complicated it must be.

But window buffers are usually in VRAM, not regular RAM, right? And I assume that their size would be relatively fixed in system and depend on your resolution (though I don't know precisely how they work). I would think that the total memory taken up by window buffers would be relatively constant and unchanging no matter what you have open - everything else is overhead that any given program ordered, which is what we're concerned about.


Well, you see, there's a popular brand of computers that don't have separate VRAM and have twice the display resolution of everyone else.

Luckily, windows aren't always fullscreen and so the memory usage is somewhat up to the user. Unluckily, you often need redundant buffers for parts of the UI tree, even if they're offscreen, eg because of blending or because we want scrolling to work without hitches.


Are you 100% sure every single window needs to have 8k resolution?

The size of the window is up to the user.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: