When O3 is 2x slower than O2

294 points cat_solstice 33 comments

While trying to optimize a piece of Rust code, I ran into a pathological case and I dug deep to try to understand the issue. At one point I decided to collect the data and write this article to share my journey and my findings.

This is my first post here, I'd love to get your feedback both on the topic and on the article itself!