Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


> It uses slightly more base RAM to load the binary.

It's mostly vmem until / unless the data actually gets used though, no?


I 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.


> 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: