Question I don't know the answer to: is it possible for a single binary to not load the whole code into memory before executing? I know from video games that incremental loading is a really nice way of minimizing load screens. Usually using interpreted languages.
I guess this might be a general question of: "How do you make big applications memory efficient?" Or is app logic hardly the offender, and is it more about making sure we load / unload assets gradually?
-
-
Hm, no idea. I'd kinda assume the actual binary is mmap'd by the OS
-
Hmm, yeah, that's what I suspect too! It'd be great to know for sure tho :D
End of conversation
New conversation -
-
-
You can check the loading with strace. I don't think your binary would get fully loaded so it doesn't matter if it's 5MB or 500MB. I vaguely remember that the system optimizes the process through pages and it also loads the required dynamic libs.
-
Also, sorry for being a busybody :D I really enjoy your work and your technical tweets trigger fun phases of investigation and research. Thanks for sharing your thinking process!
- 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.