In a real codebase, this would be wrapped by a macro to abort in a debug build but gain the optimizations in a release build.
I'd rather have solid logging and/or abort handling than some extra yak hairs shaved off the speed on my release builds. I'm weird that way.