Excessive exception size cost ...

Michael Meeks michael.meeks at suse.com
Tue Mar 13 03:06:34 PDT 2012


Hi Noel,

On Tue, 2012-03-13 at 08:48 +0200, Noel Grandin wrote:
> Just some interesting numbers for this debate.

	:-)

> Doing some rough analysis on master:
> 
> [1] total number of throw calls     108381

	It's really rather smaller than this; a better proxy is:

$ git grep 'throw  *[^(]' | wc -l
16279

> [2] total no. of catch blocks          3984
>       re-throws the same exception      319
>       throws different exception        433
>       calls generic handler            1134
>       ignores exceptions               1121
>       others                            977

	Nice breakdown :-)

	So of course the 16k number of throws seems huge, but next to our:

$ find -name '*.[ch]*' | xargs grep ';' | wc -l
5600685

	it is 0.3% of our ';' lines ;-)

	HTH,

		Michael.

-- 
michael.meeks at suse.com  <><, Pseudo Engineer, itinerant idiot



More information about the LibreOffice mailing list