3 ms·
A problem is how people have started depending on the optimizations. "This tower of abstractions is fine, the optimizer will remove it all" Result is some moder
by hyghjiyhu 1y ago
A problem is how people have started depending on the optimizations. "This tower of abstractions is fine, the optimizer will remove it all" Result is some modern idioms run slow as molasses without optimization, and you can't really use o0 at all.
- Someone 1y agoIndeed. Also, - Turbo Pascal was compiling at o-1, at best. For example, did it ever in-line function calls? - its harder to generate halfway decent code for modern CPUs with deep pipelines, caches, and branch predictors, than it was for the CPUs of the time.
- epolanski 1y ago> its harder to generate halfway decent code for modern CPUs with deep pipelines Shouldn't be the case for an O0 build.
- nine_k 1y agoCan you give an example? AFAICT monomorphization takes the major portion of time, and it's not even a result of some complicated abstraction.