News for hackers. Stuff that matters.
Re:Why is a Rust executable large? by tatterdemalion on Thursday June 02, 2016 @07:39PM (#11827137)
But static linking could mean that function will be inlined.
Re:Why is a Rust executable large? by angry_octet on Thursday June 02, 2016 @11:37PM (#11828135)
Inlining saves time lost due to jumping about, but it can cost time if it causes code replication (same as loop unrolling), because it can bloat the hot code to larger than the smallest cache.

So the arguments against inlining apply even more strongly when talking about every program being statically linked, the same code (standard library) will exist in memory in many places, and will get dumped and reloaded to L2/L3 every process swap. Nothing slower than having to wait for something to be faulted in.

Re:Why is a Rust executable large? by majewsky on Friday June 03, 2016 @09:13AM (#11830100)
> Nothing slower than having to wait for something to be faulted in.

There is something slower. When your executables are so large that you have to hit the swap drive on process swaps.

Re:Why is a Rust executable large? by adrianratnapala on Thursday June 02, 2016 @11:33PM (#11828125)
It means that function might be inlined.

And sufficiently aggressive inlining will increase the program size further. This might or might not be compensated for by the increase in instruction-pointer locality.