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.
This bug was originally marked as duplicate of bug 220173, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related. Build: NetBeans IDE Dev (Build nbms-and-javadoc-9596-on-20121114) VM: Java HotSpot(TM) 64-Bit Server VM, 23.5-b02, Java(TM) SE Runtime Environment, 1.7.0_09-b05 OS: Mac OS X User Comments: mgrebac: reviewing diffs for lots of files (~250) Maximum slowness yet reported was 30300 ms, average is 30300
Created attachment 128793 [details] nps snapshot
Does subversion.ui.diff.MultiDiffPanel.SetupsPrepareSupport.run() need to run in EDT?
(In reply to comment #2) > Does subversion.ui.diff.MultiDiffPanel.SetupsPrepareSupport.run() need to run > in EDT? I cannot say for sure. But even if we moved the calls from AWT to background, i don't think it would help at all. See: > org.openide.awt.ContextManager$LSet.resultChanged(): 5235 / 0 > org.openide.util.Mutex.readAccess(): 5235 / 0 > org.openide.util.Mutex.doEvent(): 5235 / 0 All work is done in org.openide.awt.ContextManager in AWT anyway, so i don't think we can do anything about it. Either it must be optimized in org.openide.awt.ContextManager (can it?) or in Lookup - it seems to be extremely slow and continuously blocked by Active Reference Queue Daemon thread.
16s in org.netbeans.modules.subversion.ui.diff.MultiDiffPanel.access$2200() 14s in org.netbeans.modules.subversion.ui.diff.DiffFileTable.setTableModel() both call chains(!) then end up in changing actionGlobalLookup() and a lot of context aware actions then start to process the change. Consider changing the lookup only once, possibly outside of EDT. I am going to add more logging to ContextManager.
ergonomics#a0c9819990d5
i'll get rid of abusing the global lookup and go back to using TC.setSelectedNodes only.
fix: http://hg.netbeans.org/core-main/rev/650bfb6fa9b7
Integrated into 'main-golden', will be available in build *201212170919* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/a0c9819990d5 User: Jaroslav Tulach <jtulach@netbeans.org> Log: #223192: org.openide.awt.ContextManager.isEnabledOnData: LowPerformance took 30300 ms. #223192: Print the list of actions in case updating their state takes more than 2s
*** Bug 223390 has been marked as a duplicate of this bug. ***