Community
Participate
Working Groups
Create local variable, create field and create parameter can be slow especially when they need to infer the type inside a function call. Most of the time is spent building ASTs inside CxxASTUtils.tryInferTypeFromFunctionCall
Created attachment 190954 [details] Quick fix performance improvements The ASTs are built with the flag AST_SKIP_INDEXED_HEADERS but a null index is passed. The ASTs can also be cached, at least locally, so that they are not rebuilt. I see this as an interim improvement until we have a class like RefactoringASTCache available to codan. This will probably be done part of bug 337486 but I will keep this bug opened until then to make sure quick fixes take advantage of this.
Committed to HEAD.
*** cdt cvs genie on behalf of mlaperle *** Bug 339634 - [performance] Quick fix create local variable and others can be slow [*] CxxAstUtils.java 1.12 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/codan/org.eclipse.cdt.codan.core.cxx/src/org/eclipse/cdt/codan/core/cxx/CxxAstUtils.java?root=Tools_Project&r1=1.11&r2=1.12