This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 197747 - Performance improvements of org.netbeans.editor.Annotations and related classes
Summary: Performance improvements of org.netbeans.editor.Annotations and related classes
Status: NEW
Alias: None
Product: editor
Classification: Unclassified
Component: Hints & Annotations (show other bugs)
Version: 7.0
Hardware: PC Linux
: P2 normal with 2 votes (vote)
Assignee: Milutin Kristofic
URL:
Keywords: PERFORMANCE, PLAN
: 205842 (view as bug list)
Depends on:
Blocks: 194816 197857
  Show dependency tree
 
Reported: 2011-04-14 13:01 UTC by Miloslav Metelka
Modified: 2013-09-04 13:14 UTC (History)
1 user (show)

See Also:
Issue Type: TASK
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Miloslav Metelka 2011-04-14 13:01:11 UTC
I would like to rewrite o.n.editor.Annotations to be more efficient:
1) Get rid of marks and the markChain.
2) Compute annotations combinations lazily once a particular line is about to be displayed.
3) Hold annotations in a vector according to their underlying position.
3) Possibly have a special handling by the view hierarchy rather than just a highlighting layer.
Comment 1 Vladimir Voskresensky 2011-04-14 13:31:47 UTC
Mila, as another perf improvements we'd like to see method:
updateAnnotations(collectionForRemove, collectionToAdd)

then we can prevent expensive sequence in clients code like:
for (anno: collectionForRemove) {
anno.detachImpl();
}

for (anno: collectionToAdd) {
anno.attachImpl();
}
Comment 2 Miloslav Metelka 2011-12-02 12:53:08 UTC
*** Bug 205842 has been marked as a duplicate of this bug. ***