Bug 428223 - The performance of the ASTParser has degraded when using 3.6.2+Java7
Summary: The performance of the ASTParser has degraded when using 3.6.2+Java7
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.6   Edit
Hardware: PC Windows 7
: P3 major with 2 votes (vote)
Target Milestone: ---   Edit
Assignee: Jay Arthanareeswaran CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-14 15:30 EST by Grant Taylor CLA
Modified: 2022-08-21 03:08 EDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Grant Taylor CLA 2014-02-14 15:30:30 EST
We have a product in the market.  A customer is reporting that a workspace is taking longer to build between releases, with the newer release being slower.  By adding some diagnostics, it appears that we are calling ASTParser approximately the same number of times with the same artifacts, yet it is taking much longer to process.  I performed multiple runs and averaged the elapsed times, although there was little difference between runs.

Old release number of artifacts: 4179
Time spent: 64 seconds

new release number of artifacts: 4128
Time spent: 114 seconds

The old release is: org.eclipse.jdt.core_3.6.3.v_A77_R36x.jar
The new release is: org.eclipse.jdt.core_3.6.51.v_B83_R36x_J7.jar

Here's the code we're calling, around which I've gather the aforementioned statistics:
ASTParser parser = ASTParser.newParser(AST.JLS3);
parser.setKind(ASTParser.K_COMPILATION_UNIT);
parser.setSource(iUnit);
parser.setResolveBindings(true);
CompilationUnit domUnit = (CompilationUnit) parser.createAST(null);
Comment 1 Dani Megert CLA 2014-02-19 08:13:59 EST
Just for the records: this is not a point release update, but a major release that added Java 7 support to 3.6.2+.
Comment 2 Srikanth Sankaran CLA 2014-09-18 01:02:02 EDT
If you are able to gather and attach some profiles, we can take a quick look for
low hanging fruits in the near future. Otherwise we will look at this for 4.5.

As Dani pointed out, the delta between the two releases you cite contained major
feature upgrade.
Comment 3 Jay Arthanareeswaran CLA 2015-05-12 03:59:22 EDT
Will look at this during 4.6.
Comment 4 Jay Arthanareeswaran CLA 2016-04-05 04:34:31 EDT
No progress yet and unlikely to get time during 4.6. Moving out.
Comment 5 Manoj N Palat CLA 2018-05-16 01:06:30 EDT
bulk move out of 4.8
Comment 6 Eclipse Genie CLA 2020-07-04 02:50:54 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 7 Eclipse Genie CLA 2022-08-21 03:08:02 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.