1. The parent didn’t say if they compiled with optimizations. I bet they did, as the code would probably look even worse without, but who knows.
2. This isn’t apples to oranges, as you’re not doing formatting here, right?
3. The formatting code makes various trade offs; it’s not optimized for speed, more for size, in my understanding.
4. Codegen bugs do happen. Maybe this is a degenerate case.
In general, if the code is significantly worse, then it’s a bug.