4 ms·
TLDR; do not trust Activity Monitor. > I gave up Sublime because of memory usage Isn't this just because of GPU-mapped memory/textures? Because you can't get
by cztomsik 3y ago
TLDR; do not trust Activity Monitor.
> I gave up Sublime because of memory usage
Isn't this just because of GPU-mapped memory/textures? Because you can't get much better with any other app, for example text-rendering is not a solved problem yet, there are few nice tricks but they always come with some tradeoff so if you want to support non-english scripts, you usually just go with glyph atlas which needs to include 1:1 glyph-size (retina is big) + up to 3 extra variations because of kerning for each used glyph. System apps do not report this if they are using cocoa but a similar overhead is still there.
Or because of the emoji font, which alone takes 200M!!! And if your app opens it (just to support emojis, not necessarily to draw them), it gets reported as its own memory even when it's usually mmapped and shared between processes (and might not even be loaded in the memory).
What kind of memory usage are we talking about? And how did you measure?
- gcanyon 3y agoSublime with no windows open: 410mb of memory CotEditor with no windows open: 80mb of memory BBEdit with no windows open: 85mb of memory In the Activity Monitor.
- cztomsik 3y agoSo? 410M is reported, it does not mean it's actually used. I'm not sure if you are familiar with how virtual memory works but if you are, then I don't understand what's your point.
- jmull 3y agoI guess it varies... I have ~50 files open in sublime right now, mostly small, but some fairly large (e.g. one is 600K), and I'm seeing 279MB in activity monitor. It was less, but I cycled through all my open files just to keep it honest. Of course, there are a million different workflows people use, not to mention different plug-ins and language packages, etc., so it may just not work for you. But I don't think there's really an inherent problem.
- gcanyon 3y agoThat's fascinating. I wonder what's different between your situation and mine. You're on an M-series Mac? Current MacOS?
- jmull 3y agoYes, it’s an M1 (the lower-end Studio one), and Monterey.
- jmull 3y agooops, I mean Sonoma -- whatever the very latest is. Sorry, I can't keep these names straight. I was installing betas on this machine, so I had the final release somewhat earlier than the official release since the beta RC2 and final release were the same.