2 ms·
Why optimize a binary that's 109MB? That's too small to matter.
by dekhn 5y ago
Why optimize a binary that's 109MB? That's too small to matter.
- immibis 5y ago30 years later: " Why optimize a binary that's 109GB? That's too small to matter."
- dekhn 5y agoI mean, for current computers (or even my 10 year old server), 128MB is so small that it's not worth optimizing. My $25 raspberry pis can run this without any problems while also running a bunch of other programs. my first linux computer had 4MB of RAM but that doesnt' mean I try to fit anything into that (once I upgraded to 32MB, I could run g++, emacs, X11 and xterm at the same time!)
- rixed 5y agoWhy did you upgrade back then? Because you wanted to be able to run more stuff, or because you wanted to be able to run the exact same executables, just bigger?
- dralley 5y agoA binary that doesn't fit in cache isn't too small to matter.
- SuperQue 5y agoThat's not running binaries works. Only the parts of the code that are in use are paged into the page cache. So if you only use a couple of the features, it fits in cache just fine.
- dekhn 5y agoWhat's the page size on linux. Are executables (even statically linked ones) demand paged? How much of the executable that you don't use is paged in when you don't use it?