What I learned about debug performance of C++ vector math: https://blog.s-schoener.com/2025-08-07-vector-debug-codegen/
Always nice to see specific numbers, even if the underlying idea (without optimizations enabled your function heavy code is slow) is not exactly novel.
Re the last paragraph, O1 for debugging is okay, but I recommend trying Og instead. Clang no longer implements it as an alias of O1, so it will likely keep getting better in the future.
Oh great, I did not know that -Og is now a separate thing! Thank you.
Also, in a world with ChatGPT it's impossible to write something novel. I've given up on that a long time ago. It's the age old "it will be novel for someone". Applying novelty as a standard for your own writing will just mean you write no longer, and nobody benefits :)