Bug 232540

Summary: [Content Type] Avoid quadratic Content Type performance cost
Product: [Eclipse Project] Platform Reporter: Ed Willink <ed>
Component: ResourcesAssignee: Platform-Resources-Inbox <platform-resources-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3 CC: bokowski, Ed.Merks, Szymon.Brandys
Version: 3.4Keywords: performance
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Ed Willink CLA 2008-05-16 12:46:07 EDT
M7

Opening a Folder in the Package Explorer requires that the content type of every Resource be identified in order to display the correct icon.

The cost of this is currently proprtional to the product of the number of Resources and the number of candidate Content Types.

With EMF adding XML content type analysis using namespaces, opening a folder of 100 XML files with 10 candidate namespaces may require 1000 SAX parses; fortunately the input streams are reused.

This cost could be substantially alleviated if ILazySource supports an arbitrary Map so that one content analysis can cache analysis results for use by another analysis. In the case of EMF, the root non-XMI element could be cached by the first analysis eliminating further SAX parses.
Comment 1 Eclipse Webmaster CLA 2019-09-06 15:35:25 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.