Re:C performance mystery: delete unused string constant
by scoutt on Thursday June 25, 2020 @08:29AM
(#23639876)
In a world where all the electronic devices are composed of x86 cores and/or have a data and/or instruction cache, it could be true.
But there are plenty of architectures out there where space-time tradeoffs (by optimized compilers) are still a thing (my PoV is from the embedded industry).
If you don't know what you are doing unrolling is just as likely to hurt performance because you don't fit into uOP cache and get less decode bandwidth as a result. Or you increase ICache pressure on macro benchmarks and hurt real world performance. Modern cores are really good at hiding loop accounting overhead.