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.
Build: NetBeans IDE Dev (Build 100728-e3e2641f491e) VM: Java HotSpot(TM) Client VM, 17.0-b16, Java(TM) SE Runtime Environment, 1.6.0_21-b06 OS: Linux User Comments: jglick: Closed a diff window. Maximum slowness yet reported was 15364 ms, average is 7236
Created attachment 101071 [details] nps snapshot
Passing to the platform team for evaluation. The following pseudo call: a = org.openide.util.Utilities.actionsGlobalContext().lookupResult(ActionMap.class); a.allInstances() takes sometimes a way too long. We call it from AWT EDT - if it is not the correct way please suggest how we should get the context for the menu ... Thanks a lot for your help.
Rewrite org.netbeans.modules.editor.MainMenuAction$1.propertyChange() to not do batch updates of 200 elements(?) in AWT thread.
Created attachment 102465 [details] nps snapshot Closing all tabs
I apologize but I don't understand your comment. Looking at some new snapshot, e.g. 628848 it still seems that my comment 2 holds. Couple of calls to org.openide.util.Utilities.actionsGlobalContext().lookupResult(ActionMap.class); take several seconds. Maybe I just misunderstood your comment. Can you please point me to the code that does the batch update? Thanks a lot.
1 call from org.netbeans.api.editor.EditorRegistry.fireEvents() spread to 187 calls to org.netbeans.modules.editor.MainMenuAction$1.propertyChange() Should you split the calls to 187 invokeLater(runnable), the EDT will be occupied only for 100ms each time.
it looks like this affects c++ navigator mostly
*** Bug 212094 has been marked as a duplicate of this bug. ***
(In reply to comment #6) > > Should you split the calls to 187 invokeLater(runnable), the EDT will be > occupied only for 100ms each time. This is true, but AFAIK mouse events have the same priority as invokeLater() events and painting has the priority even lower. If the work is just divided into invokeLaters, then the EQ will pile up with invocation events and painting/input stops anyway ?
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue. Thanks for your cooperation, NetBeans IDE 8.2 Release Boss