Aug 31, 2012

[C++][NOTE] C++ Exception Handling and Performance

Concept :
In TLPI

Ch. 6.8 setjmp()  longjmp() 

Ch. 21.2.1 sigsetjmp() and siglongjmp()

C++ Exception Handling and Performance

excerpt :
Using exceptions will make binary size bigger, no matter what mechanism 
is used to implement exception handling. So if program size is more 
important than execution speed, exceptions should not be used. And in 
those cases where you want to gain maximum execution speed with minimal 
impact on binary size, you have to do additional testing in order to 
find the best combination of C-style error checking and exception 
handling code that achieves your result.

reference :
Exception handling implementation

[boost] Error and Exception Handling
Exception-Safety in Generic Components by David Abrahams
reference:
Structured Exception Handling
Exception handling in linux / structured exception handling (SEH)

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.