|
|
|
|
|
by astrange
1513 days ago
|
|
I am a performance engineer and recommend against this. Optimizations don't really work that well on their own; to get performance you want an ongoing conversation between yourself and the compiler, which you don't get if the compile time is super long. If you do have a really long running superoptimizer discovering things, then you'd want a way to write that back into the code so you don't need to discover it again. Also, most of your program should be at -Os because it's not hot code and the important thing is to stop it from disturbing the fast parts. (Or because the aggressive optimizations actually make it slower. Totally possible with fancy ones like autovectorization.) |
|