Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 321437

Summary: [performance] QuickFixCreateField is very slow
Product: [Tools] CDT Reporter: Marc-André Laperle <malaperle>
Component: cdt-codanAssignee: Elena Laskavaia <elaskavaia.cdt>
Status: RESOLVED FIXED QA Contact: Elena Laskavaia <elaskavaia.cdt>
Severity: normal    
Priority: P3 CC: cdtdoug, kosashi
Version: 8.0   
Target Milestone: 8.0   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Pass a non-null index to skip indexed headers elaskavaia.cdt: iplog+

Description Marc-André Laperle CLA 2010-07-31 16:58:32 EDT
Created attachment 175656 [details]
Pass a non-null index to skip indexed headers

QuickFixCreateField doesn't scale well when you have includes. It spends much of its time parsing code to build ASTs.

See:

IASTTranslationUnit ast = getTranslationUnitViaEditor(marker)
					.getAST(null, ITranslationUnit.AST_SKIP_INDEXED_HEADERS);

passing a null index as the effect of not skipping any headers.
Comment 1 Marc-André Laperle CLA 2010-08-18 00:03:28 EDT
Hi Alena, can you take a look at this simple patch? This quick fix performs poorly in its current state. Thanks!
Comment 2 Elena Laskavaia CLA 2010-08-18 10:21:22 EDT
patch applied on head, thanks