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

Bug 367564

Summary: JdtClasspathUriResolver optimization
Product: [Modeling] TMF Reporter: Vladimir Piskarev <vpiskarov>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: sven.efftinge
Version: 2.3.0Flags: sven.efftinge: juno+
Target Milestone: M5   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Proposed patch sven.efftinge: iplog+

Description Vladimir Piskarev CLA 2011-12-27 01:17:49 EST
Build Identifier: 2.2.1

Profiling showed a hot path in ExtensibleURIConverterImpl#normalize(URI) due to JdtClasspathUriResolver#findResourceInWorkspace(IJavaProject, URI) method. As currently implemented, this method has a costly resource traversal (via IResourceVisitor) which can be completely optimized away via obtaining an IFile handle and checking for file existence. Please see the proposed patch which proved to speed up build quite a bit on a project with 5000 'entities' having a validator similar to Xtend2's ClasspathBasedChecks.

Reproducible: Always
Comment 1 Vladimir Piskarev CLA 2011-12-27 01:19:15 EST
Created attachment 208809 [details]
Proposed patch
Comment 2 Sven Efftinge CLA 2012-01-24 05:11:52 EST
pushed to master
Comment 3 Karsten Thoms CLA 2017-09-19 16:54:15 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 4 Karsten Thoms CLA 2017-09-19 17:05:06 EDT
Closing all bugs that were set to RESOLVED before Neon.0