378
Ex-Microsoft engineer rebuilds Notepad in 2.5KB using nothing but stuff Windows already had
(www.windowslatest.com)
A community for PC Master Race.
Rules:
Size on disk doesn't correlate to memory usage or load time. You can get a very small on disk size by compression, or downloading the main executable at runtime.
The size of the main binary and all the libraries loaded does determine the starting point of the memory usage, but then doing things like loading files are going to also use memory and there are many strategies for optimizing for speed, memory usage, disk size that have tradeoffs between them. Anyway the point is that the size of the program itself isn't irrelevant even though it isn't the only factor in memory usage.
Even the linked libraries may not contribute anything, if they are already loaded and shared amongst other processes. There are so many factors and trade offs that you cant really make any assumptions based off just the executable size.
Sure. I wasn't thinking of something like .kkreiger. I assumed that a small simple text editor would use a similarly small amount of memory. Shocked it ballooned so big. Sorry can't read the article at the moment.
It does some of the tricks that .kkreiger uses, including compressing the binary.
And at least according to a few reports, it uses 500MB of ram:
https://github.com/PlummersSoftwareLLC/TinyRetroPad/issues/21
Simply building without Crinkler compression changes the file size to 11 kiB and RAM usage to 1.7 MB. That's almost double what Microsoft's old Notepad (at a file size of 250-350 kiB, including an uncompressed multi-size RGBA icon of around 100 kiB and localization) uses but not bad, and probably the version most people will prefer for practical use.
Oh my god thanks for these memories
demoscene & 64K intro
Thinking it doesn't correlate at all seems foolish. There is some correlation, it's just miniscule.