2 ms·
I appreciate the sentiment but compilers optimizing size (gcc -Os) often produce rather bad full-program performance. Cache and TLB pressure are important topi
by thedance 7y ago
I appreciate the sentiment but compilers optimizing size (gcc -Os) often produce rather bad full-program performance. Cache and TLB pressure are important topics but in my experience it seems to have been the case that hot/cold code splitting and other layout optimizations overcome the problem, and text on hugepages helps with iTLB miss rate. The best full-system performance I've been able to get on complex C++ servers has always been with really large outputs, 100s of MB of .text.