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 232746

Summary: org.netbeans.modules.parsing.impl.RunWhenScanFinishedSupport.runWhenScanFinished: LowPerformance took 20097 ms.
Product: java Reporter: chucklowery
Component: JUnitAssignee: Theofanis Oikonomou <theofanis>
Status: RESOLVED FIXED    
Severity: normal CC: stefan79
Priority: P3 Keywords: PERFORMANCE
Version: 7.3   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 199778
Attachments: nps snapshot

Description chucklowery 2013-07-15 20:51:47 UTC
Build: NetBeans IDE 7.3 (Build 201306052037)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.21-b01, Java(TM) SE Runtime Environment, 1.7.0_21-b11
OS: Windows 7

User Comments:
chucklowery: Switching between windows

stefan79: Started the debugger.



Maximum slowness yet reported was 28993 ms, average is 12144
Comment 1 chucklowery 2013-07-15 20:51:49 UTC
Created attachment 137155 [details]
nps snapshot
Comment 2 Tomas Zezula 2013-07-17 17:30:05 UTC
JunitMethodDebuggerProvider.getTestMethod() does parsing in EDT.
The JS.runWhenScanFinished() schedules asynchronously when scan it needs to wait for scan to finish but synchronously to other JS.runWhenScanFinished()  or The JS.runUserActionTask().
Comment 3 Theofanis Oikonomou 2013-08-15 09:52:20 UTC
This should be fixed by http://hg.netbeans.org/main-golden/rev/7cbe1576bbb0. It will be available in 7.4. Please try a latest build and reopen if it does not work for you. Thank you