Date: prev next · Thread: first prev next last
2012 Archives by date, by thread · List index


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@suse.com  <><, Pseudo Engineer, itinerant idiot


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.