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 217065 - 41956 ms in org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.computeHints.
Summary: 41956 ms in org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.comput...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Jan Lahoda
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2012-08-18 22:43 UTC by bht
Modified: 2012-11-20 02:39 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 175364


Attachments
nps snapshot (107.42 KB, application/nps)
2012-08-18 22:43 UTC, bht
Details

Note You need to log in before you can comment on or make changes to this bug.
Description bht 2012-08-18 22:43:19 UTC
Build: NetBeans IDE Dev (Build 201208160001)
VM: Java HotSpot(TM) Client VM, 23.2-b09, Java(TM) SE Runtime Environment, 1.7.0_06-b24
OS: Windows XP

User Comments:
bht: running JUnit test from editor context

bht: Starting a junit test suite after a project clean and build while classpath scanning was in progress. 100% CPU for the entire time. I have some doubts that it would have taken so long for the classpath scanning to complete if I had waited.

bht: Starting junit test



Maximum slowness yet reported was 181360 ms, average is 76792
Comment 1 bht 2012-08-18 22:43:23 UTC
Created attachment 123284 [details]
nps snapshot
Comment 2 Petr Cyhelsky 2012-11-15 15:16:10 UTC
almost all the time the AWT is waiting for lock held by editor parsing loop which is computing hints.
most of the time is spent in
java.util.BitSet.or()	22,193 ms (52.9%)
java.io.WinNTFileSystem.canonicalize0[native]() 5,489 ms (13.1%)
java.io.WinNTFileSystem.canonicalizeWithPrefix0[native]() 3,982 ms (9.5%)

the fs is maybe little slow but should this block awt at all?
Comment 3 Jan Lahoda 2012-11-19 11:04:59 UTC
I have greatly improved the cancellability of hints computation:
http://hg.netbeans.org/jet-main/rev/90c94104a67a
Comment 4 Quality Engineering 2012-11-20 02:39:53 UTC
Integrated into 'main-golden', will be available in build *201211200002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/90c94104a67a
User: Jan Lahoda <jlahoda@netbeans.org>
Log: #217065: improving cancelability of java.hints computation