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

Bug 520786

Summary: JDT creates ASTs for generic classes very slow
Product: [Eclipse Project] JDT Reporter: Ivan Ivan <stoshins>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: stephan.herrmann
Version: 4.7   
Target Milestone: ---   
Hardware: PC   
OS: Windows NT   
Whiteboard: stalebug
Attachments:
Description Flags
Sources
none
Use it to build ASTs none

Description Ivan Ivan CLA 2017-08-09 15:06:34 EDT
Created attachment 269767 [details]
Sources

Hi, I was creating ASTs for ReactiveX Java Library sources and noticed that the building process takes years. It's only 700 files, usually it's built within 10 seconds (max), on my PC building of these files took around 15 minutes.
Please check my PoC and verify that it's ok
Comment 1 Ivan Ivan CLA 2017-08-09 15:07:45 EDT
Created attachment 269768 [details]
Use it to build ASTs
Comment 2 Stephan Herrmann CLA 2017-08-09 15:44:27 EDT
> JDT creates ASTs for parenthesized classes very slow

what's the relation to parentheses?

Also: have you seen that ASTParser has methods createASTs() (plural)? Specifically, with setResolveBindings(true) this could make a significant difference.
Comment 3 Ivan Ivan CLA 2017-08-09 15:48:27 EDT
Oh sorry, it was late evening, I wanted to say generic classes.

BTW I use createASTs() method, but not createAST()
Comment 4 Stephan Herrmann CLA 2017-08-09 19:42:20 EDT
(In reply to Sergey Toshin from comment #3)
> BTW I use createASTs() method, but not createAST()

My time to say sorry :)
Didn't correctly read your source code.

While the JDT team is more than busy with Java 9 work, can you already say a but about where the time is spent?
Comment 5 Ivan Ivan CLA 2017-08-09 20:32:05 EDT
I never looked under the hood of your library. So no, I cannot :( Java 10 will release and only then I maybe find out
Comment 6 Eclipse Genie CLA 2019-08-30 07:31:28 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.