3 ms·
Unless/until a lot more is written in Rust... not much. It uses slightly more base RAM to load the binary. Some of the bloat is things that in C programs would
by eximius 7y ago
Unless/until a lot more is written in Rust... not much. It uses slightly more base RAM to load the binary. Some of the bloat is things that in C programs would be dynamically linked in - it isn't that Rust is doing more, it's that C gets to share a lot of stuff and Rust has to bring it's own.
- masklinn 7y ago> It uses slightly more base RAM to load the binary. It's mostly vmem until / unless the data actually gets used though, no?
- eximius 7y agoI don't know. I wouldn't be surprised that it loaded the whole thing. How could the OS predict how much to load (or wait on)? Waiting for a page to load just for the next function call would be hugely expensive.
- masklinn 7y ago> How could the OS predict how much to load (or wait on)? The same way it does for every other bit of allocated memory: it allocates the physical page on a page fault in a valid mapping.