13.04.2016 11:48, Alex Peshkoff wrote:
>   Performance issues
> when processing an error are not critical - compared with resources
> needed for exception throwing and catching 1 or 2 additional allocations
> of (sooner of all) small blocks are not a problem.

   I had a prototype that was supposed to solve both problems:
a) Status was encapsulated in all-sufficient class with reference counter.
b) Exception object had a smart pointer for this class.
   With this schema it was enough to save pointer to inner status object in 
external smart 
pointer and let the caught exception die. No overhead on both saving and 
re-throwing.

-- 
   WBR, SD.

------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to