Bug 28155 - [startup] EditorRegistry eagerly sorted without me opening any editors
Summary: [startup] EditorRegistry eagerly sorted without me opening any editors
Status: RESOLVED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Eduardo Pereira CLA
QA Contact:
URL:
Whiteboard:
Keywords: performance
Depends on:
Blocks:
 
Reported: 2002-12-12 06:22 EST by Adam Kiezun CLA
Modified: 2003-01-07 14:23 EST (History)
0 users

See Also:


Attachments
startup (8.75 KB, text/plain)
2002-12-12 06:22 EST, Adam Kiezun CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Kiezun CLA 2002-12-12 06:22:12 EST
20021210
that takes like 2% of startup (not much but why is it done at all at this 
point?)

the culprit is Collator.getInstance, which is quite expensive (takes a second 
under a profiler)
Comment 1 Adam Kiezun CLA 2002-12-12 06:22:46 EST
Created attachment 2762 [details]
startup
Comment 2 Eduardo Pereira CLA 2003-01-07 14:23:38 EST
Collator.getInstance has a cache. The first one to call it will pay the price 
for its instanciation. Is is called in many places in Eclipse. Optimizing it 
to not call getInstance will not optimize the startup since that time will 
show up in some other place.