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 - Bad performance for large source with many implements annotations
Summary: Bad performance for large source with many implements annotations
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.0.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on: 116352 197848
Blocks: 194816
  Show dependency tree
 
Reported: 2011-04-14 12:40 UTC by Miloslav Metelka
Modified: 2013-02-26 17:17 UTC (History)
0 users

See Also:
Issue Type: DEFECT
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 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.