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

Bug 343682

Summary: [performance] AbstractClassInstantiationChecker could be a bit faster
Product: [Tools] CDT Reporter: Marc-André Laperle <malaperle>
Component: cdt-codanAssignee: Marc-André Laperle <malaperle>
Status: RESOLVED FIXED QA Contact: Elena Laskavaia <elaskavaia.cdt>
Severity: normal    
Priority: P3 CC: cdtdoug
Version: 8.0   
Target Milestone: 8.0   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
AbstractClassInstantiationChecker, cache pure virtual methods malaperle: iplog-

Description Marc-André Laperle CLA 2011-04-23 02:18:42 EDT
Created attachment 193950 [details]
AbstractClassInstantiationChecker, cache pure virtual methods

I use AbstractClassInstantiationChecker on rather big files and I notice that it is a bit slower than other checkers. A lot of time is spent getting the pure virtual methods for class types. This could be cached.
Comment 1 Marc-André Laperle CLA 2011-04-23 02:24:54 EDT
Committed to HEAD.
Comment 2 CDT Genie CLA 2011-04-23 03:23:14 EDT
*** cdt cvs genie on behalf of mlaperle ***
Bug 343682 - [performance] AbstractClassInstantiationChecker could be a bit faster

[*] AbstractClassInstantiationChecker.java 1.2 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/codan/org.eclipse.cdt.codan.checkers/src/org/eclipse/cdt/codan/internal/checkers/AbstractClassInstantiationChecker.java?root=Tools_Project&r1=1.1&r2=1.2