3 ms·
You profile the generated code, be that in terms of execution speed or size in bytes: If it's better then it's better. In this case C++ exceptions are practica
by mhh__ 8y ago
You profile the generated code, be that in terms of execution speed or size in bytes: If it's better then it's better.
In this case C++ exceptions are practically zero cost so I don't quite believe that the compiler will generate more efficient code unless it elides some of the C version based on context (Otherwise the if statements aren't free)