3 ms·
RAM is not cheap. Executables live in RAM when running.
by adastra22 1y ago
RAM is not cheap. Executables live in RAM when running.
- trenchpilgrim 1y agoOnly the parts that are being used (the working set).
- metaltyphoon 1y agoExecutables lives in pages of RAM and not all pages are in physical memory at once.
- snovv_crash 1y agoNo, they're mmapped to RAM. Only the pages that get used are loaded to RAM.
- adastra22 1y agoAbsent evidence to the contrary, the reasonable assumption here is that all of those pages are being used. The rest compiler is not in the habit of generating volumes of code that aren’t being called.
- snovv_crash 1y agoThat would be asking to prove a negative, which isn't reasonable. Also, the question isn't if the code isn't used, it is that it isn't used simultaneously. Almost all software has many features which aren't used simultaneously. For example, it is unlikely you have all of the different language parsers loaded at the same time, because most projects use only a few.