Boost logo

Boost :

Subject: Re: [boost] [inspect] exceptions (FW: [Boost-users] no exceptions)
From: Emil Dotchevski (emildotchevski_at_[hidden])
Date: 2011-03-25 00:58:18


On Thu, Mar 24, 2011 at 8:03 PM, Gruenke, Matt <mgruenke_at_[hidden]> wrote:
> I did a little bit of performance testing and found BOOST_THROW_EXCEPTION to add about 45% overhead (CPU: Intel Xeon X5570;  compiler: gcc-4.2.3;  optimization: -O2) vs straight 'throw' of simple std::exception-derived class.  So, it's not exactly free.  That said, neither is blazingly fast.

Could you clarify, what do you mean by overhead? Speed? Speed of
throwing an exception? Speed of catching an exception? Code size?
Compilation time?

Emil Dotchevski
Reverge Studios, Inc.
http://www.revergestudios.com/reblog/index.php?n=ReCode


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk