3 ms·
In my case, it's mostly for performance reasons that they are left out in release builds. I work in extremely performance sensitive fintech, where the cost of a
by dahfizz 6y ago
In my case, it's mostly for performance reasons that they are left out in release builds. I work in extremely performance sensitive fintech, where the cost of a couple hundred if statements in a critical code path is a big deal.
We have signal handlers and all that so the user still gets a core dump whenever the program crashes, it just takes more digging to find exactly where the bug is vs where it manifests.
- stinos 6y agoFair enough, performance critical parts are indeed not always the most ideal place for asserts; our asserts also trigger a core dump though.