Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

True, but you have many ways performance can be improved.

On this specific case it was developer helping the gcc optimizer. These type of optimizations could produce worse code in another C compiler.

Sometimes the code is already fast enough for the problem being solved, other times rewriting the algorithm could improve performance.

Only in cases where every ms counts, does helping the compiler really matter.



How do you know we're talking about milliseconds here? These changes might save hours on a big calculation.


Saving hours is the cumulative effect of every ms counts.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: