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

Bug 364990

Summary: [xtend] Content assist is way too slow
Product: [Tools] Xtend Reporter: Sebastian Zarnekow <sebastian.zarnekow>
Component: CoreAssignee: Project Inbox <xtend-inbox>
Status: CLOSED FIXED QA Contact:
Severity: major    
Priority: P3 CC: sven.efftinge
Version: 2.2.0   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard: v2.4.3
Bug Depends on:    
Bug Blocks: 409580    

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.