Bug 197747 - Performance improvements of org.netbeans.editor.Annotations and related classes
Performance improvements of org.netbeans.editor.Annotations and related classes
Status: NEW
Product: editor
Classification: Unclassified
Component: Hints & Annotations
7.0
PC Linux
: P2 with 2 votes (vote)
: 7.1
Assigned To: Milutin Kristofic
issues@editor
: PERFORMANCE, PLAN
: 205842 (view as bug list)
Depends on:
Blocks: 194816 197857
  Show dependency treegraph
 
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
:


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. ***


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo