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 197743

Summary: Bad performance for large source with many implements annotations
Product: java Reporter: Miloslav Metelka <mmetelka>
Component: EditorAssignee: Jan Lahoda <jlahoda>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 7.0.1   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Bug Depends on: 116352, 197848    
Bug Blocks: 194816    

Description Miloslav Metelka 2011-04-14 12:40:08 UTC
Please open project with Big.java file from issue #194816. The CPU is 100% for long time mostly computing some hints related information by jackpot.
Comment 1 Jan Lahoda 2011-04-14 12:52:25 UTC
I am looking at this - so far the most important problem seems to be folds (there are lots of them in the file). I have seen a near-OOME situation too. Will take a look at the hints after these two.
Comment 2 Jan Lahoda 2011-04-26 09:42:16 UTC
A change in navigator - TreePathHandles are computed lazily for navigator elements, which is both performance and memory improvement:
http://hg.netbeans.org/jet-main/rev/f3e78d858d9b
Caching of ElementHandles, which improves memory consumption (the effect is probably visible mainly in pathological cases like Big.java from bug #194816):
http://hg.netbeans.org/jet-main/rev/334ea69563f6
Comment 3 Quality Engineering 2011-04-27 04:47:47 UTC
Integrated into 'main-golden', will be available in build *201104270000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/f3e78d858d9b
User: Jan Lahoda <jlahoda@netbeans.org>
Log: #197743: compute TreePathHandles in navigator lazily to improve performance.
Comment 4 Quality Engineering 2011-04-28 05:07:30 UTC
Integrated into 'main-golden', will be available in build *201104280000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/f3e78d858d9b
User: Jan Lahoda <jlahoda@netbeans.org>
Log: #197743: compute TreePathHandles in navigator lazily to improve performance.