by Hamuko · 6y ago · 0 comments
In what scenarios is optimizing for binary size preferred over optimizing for speed?
SQLite recommends optimizing for size, because it yields a significantly smaller binary with minimal speed impact: https://www.sqlite.org/footprint.html
In that case having a big exe file can really hurt start-up performance, so optimizing for that might be preferable if your application is not very speed sensitive.
[1]: https://docs.microsoft.com/en-us/windows/win32/api/winnt/ns-... (IMAGE_FILE_REMOVABLE_RUN_FROM_SWAP or IMAGE_FILE_NET_RUN_FROM_SWAP)
64kb intros:
https://www.reddit.com/r/rust/comments/597hhv/logicoma_elysi...