Please use the Apache issue tracking system for new NetBeans issues ( !!
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
PC Linux
: P2 with 2 votes (vote)
: 7.1
Assigned To: Milutin Kristofic
: 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


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) {

for (anno: collectionToAdd) {
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. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo