Re:The Use of assert() in SQLite
by bbatha on Saturday April 27, 2019 @12:38AM
(#19763802)
It’s not the if staments: for an assertion the panic branch should be ice-cold and likely proven by invariants up the stack frame — other assertions or plain old conditionals — so in theory should be optimized away every time. It’s the expression in the condition that’s often expensive. The assert macro eliminates these trivially with the preprocessor , but go cannot as easily because the condition expression may have side effects.
[ Parent
| on HN ]
There are no comments on this comment yet.