Bug 28176 - 16% of opening java file spent in expanding list of Ranges
Summary: 16% of opening java file spent in expanding list of Ranges
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.1 M4   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: performance
Depends on:
Blocks:
 
Reported: 2002-12-12 10:41 EST by Adam Kiezun CLA
Modified: 2002-12-12 12:54 EST (History)
0 users

See Also:


Attachments
opening a big file (18.12 KB, text/plain)
2002-12-12 10:42 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 10:41:42 EST
more than 16% of time needed to open an editor is spent in expandCapacity on 
the list of StyleRanges in TextPresentation
Comment 1 Adam Kiezun CLA 2002-12-12 10:42:13 EST
Created attachment 2769 [details]
opening a big file
Comment 2 Adam Kiezun CLA 2002-12-12 10:42:51 EST
maybe the list could be initialized to something longer than 10
Comment 3 Kai-Uwe Maetzel CLA 2002-12-12 12:54:35 EST
Added a new constructor that accepts a size hint. This constructor is now used 
by the presentation reconciler. Build > 20021212.