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

Summary: Performance improvements of org.netbeans.editor.Annotations and related classes
Product: editor Reporter: Miloslav Metelka <mmetelka>
Component: Hints & AnnotationsAssignee: Milutin Kristofic <mkristofic>
Status: NEW ---    
Severity: normal CC: alexvsimon
Priority: P2 Keywords: PERFORMANCE, PLAN
Version: 7.0   
Hardware: PC   
OS: Linux   
Issue Type: TASK Exception Reporter:
Bug Depends on:    
Bug Blocks: 194816, 197857    

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