Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [cdt-dev] Performance problems building C++ ASTs

So how do I improve this? Can you provide some suggestions?

...Beth

Beth Tibbitts (859) 243-4981 (TL 545-4981)
High Productivity Tools / Parallel Tools http://eclipse.org/ptp
IBM T.J.Watson Research Center
Mailing Address: IBM Corp., 745 West New Circle Road, Lexington, KY 40511
Inactive hide details for "Schorn, Markus" <Markus.Schorn@xxxxxxxxxxxxx>"Schorn, Markus" <Markus.Schorn@xxxxxxxxxxxxx>


          "Schorn, Markus" <Markus.Schorn@xxxxxxxxxxxxx>
          Sent by: cdt-dev-bounces@xxxxxxxxxxx

          05/21/08 01:00 PM

          Please respond to
          "CDT General developers list." <cdt-dev@xxxxxxxxxxx>

To

"CDT General developers list." <cdt-dev@xxxxxxxxxxx>

cc


Subject

RE: [cdt-dev] Performance problems building C++ ASTs

The speed depends on the options you use with IASTTranslationUnit.getAST(...). If you are not using an index, parsing an entire project will be too slow.
Markus.


From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Beth Tibbitts
Sent:
Wednesday, May 21, 2008 5:01 PM
To:
cdt-dev@xxxxxxxxxxx
Subject:
[cdt-dev] Performance problems building C++ ASTs
Importance:
Low

I'm tracking down a performance problem (CDT 4.0.3 for now) running our PTP analysis tools on C++ code.
Getting the IASTTranslationUnit from the ITranslationUnit seems to be the culprit.
For C code,

IASTTranslationUnit atu = itranslationunit.getAST();
takes a few hundredths of a sec


For a C++ file, it takes on the order of a second and a half.


Any idea how I can speed this up? Analyzing a large C++ project is impossible at this rate.
Most of our initial analysis was on plain C code and it seems to pose no large problems.



...Beth

Beth Tibbitts (859) 243-4981 (TL 545-4981)
High Productivity Tools / Parallel Tools
http://eclipse.org/ptp
IBM T.J.Watson Research Center
Mailing Address: IBM Corp., 745 West New Circle Road, Lexington, KY 40511
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev

GIF image

GIF image

GIF image


Back to the top