logoalt Hacker News

rednafiyesterday at 7:54 PM1 replyview on HN

It's all tradeoffs. Fully monomorphized generics tend to blow up compile time.


Replies

drivebyhootingyesterday at 8:26 PM

Full monomorphization can also greatly increase code size and icache pressure. Especially if LTO was not possible.

I haven’t seen icache pressure causing performance degradation in the wild but it is in theory possible.

show 1 reply