Re:“Clean” Code, Horrible Performance
by Cthulhu_ on Tuesday February 28, 2023 @04:36PM
(#34975184)
Exactly, and they only decided to write those bits in assembly when they identified it as a hot code path AND the assembly outperformed any C code they could come up with.
The times that assembly outperforms a higher level language has reduced as well over time, with compiler and CPU improvements over time.
The times that assembly outperforms a higher level language has reduced as well over time, with compiler and CPU improvements over time.