Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 364990 - [xtend] Content assist is way too slow
Summary: [xtend] Content assist is way too slow
Status: CLOSED FIXED
Alias: None
Product: Xtend
Classification: Tools
Component: Core (show other bugs)
Version: 2.2.0   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard: v2.4.3
Keywords:
Depends on:
Blocks: 409580
  Show dependency tree
 
Reported: 2011-11-28 12:56 EST by Sebastian Zarnekow CLA
Modified: 2017-10-31 11:24 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Zarnekow CLA 2011-11-28 12:56:37 EST
Almost all time is spent in ParserBasedContentAssistContextFactory.StatefulFactory.canBeCalledAfter(AbstractRule, EObject, String, EObject)
Comment 1 Sebastian Zarnekow CLA 2011-12-06 18:11:26 EST
Reason is a malconfigured JDK (without sources)
Comment 2 Sven Efftinge CLA 2013-08-16 05:38:08 EDT
In the case of Xtend a lot of time is spent in the content assist parser, since due to the recursive grammar there are usually a lot of follow elements with a large look ahead, which require expensive, subsequent parsing.
Comment 3 Sven Efftinge CLA 2013-08-16 09:34:30 EDT
I've improved ca in xtend significantly by introducing a look ahead threshold.
The rest of the time is spent in the old scoping impl, which has to be replaced.
(see bug #411010)
Comment 4 Eclipse Webmaster CLA 2017-10-31 11:24:38 EDT
Requested via bug 522520.

-M.