Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 333539 - AbstractScope.getSingleElement slow
Summary: AbstractScope.getSingleElement slow
Status: CLOSED FIXED
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: 2.0.0   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: M5   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-05 04:38 EST by Mark Christiaens CLA
Modified: 2017-09-19 17:46 EDT (History)
2 users (show)

See Also:
sebastian.zarnekow: indigo+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Christiaens CLA 2011-01-05 04:38:24 EST
Build Identifier: 20100917-0705

Building a project with > 800 files.  Most of them are small but a couple are big (~ 2 MB).  Had to terminate the building after a couple of hours.  Using my profiler, a lot of time (90% and more) is spent in AbstractScope.getSingleElement, getElements and Google iterators.  It seems that it has something to do with the attempt to find the shadowed elements in a scope.  I don't quite understand the idea behind the ISelector and shadowing concepts so I can't give a good suggestion for a fix.  

I'm using the M4 build.

Reproducible: Always
Comment 1 Sebastian Zarnekow CLA 2011-01-05 04:43:38 EST
Could you verify that the problem is still present if you take the latest sources from the repository?
Comment 2 Mark Christiaens CLA 2011-01-05 05:26:58 EST
(In reply to comment #1)
> Could you verify that the problem is still present if you take the latest
> sources from the repository?

I'm a bit reluctant to really track the HEAD.  I see that there's still a lot of API change and it makes it hard for me to do some actual development.  But, if you think that the HEAD is at the moment in a sufficiently stable state for me to test this, I could make an effort.
Comment 3 Sebastian Zarnekow CLA 2011-01-05 05:39:17 EST
Mark,

you are right there is a lot of stuff going on in the repo. However, this week we try to clean up some APIs so I think mid January should be a good time to try it again. I'll keep you posted.

Regards,
Sebastian
Comment 4 Sebastian Zarnekow CLA 2011-01-30 09:25:08 EST
I consider this one to be fixed. Please reopen if the problem is still present.
Comment 5 Karsten Thoms CLA 2017-09-19 17:35:31 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 6 Karsten Thoms CLA 2017-09-19 17:46:27 EDT
Closing all bugs that were set to RESOLVED before Neon.0