News for hackers. Stuff that matters.
Re:Optimizations in C++ Compilers by manch23 on Monday July 13, 2020 @09:37PM (#23827633)
> I hope that some of these optimizations are a pleasant surprise and will factor in your decisions to write clear, intention-revealing code and leave it to the compiler to do the right thing.

This was my key takeaway from this article. Writing clear code that is easier to maintain will have good enough performance most of the time. I was particularly impressed with the devirtualization optimizations and will be less likely to shy away from using polymorphism in future due to performance concerns.

There are no comments on this comment yet.