Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jdt-core-dev] Optimizing parsing time

While profiling the CPU time for type hierarchies, I noticed that 15% of
the time was spent checking task tags while parsing.
As checking task tags is not necessary for computing a type hierarchy, I
changed the code to disable this option:

            Map options = project.getOptions(true);
            // disable task tags to speed up parsing
            options.put(JavaCore.COMPILER_TASK_TAGS, ""); //$NON-NLS-1$
            this.hierarchyResolver = new
HierarchyResolver(searchableEnvironment, options, this, new
DefaultProblemFactory());

Other JDT Core tools  could do the same if parsing is a performance issue
...

Jerome



Back to the top