Bug 232540 - [Content Type] Avoid quadratic Content Type performance cost
Summary: [Content Type] Avoid quadratic Content Type performance cost
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Resources (show other bugs)
Version: 3.4   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform-Resources-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: performance
Depends on:
Blocks:
 
Reported: 2008-05-16 12:46 EDT by Ed Willink CLA
Modified: 2019-09-06 15:35 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.