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.
Popup on PHP file appears significantly slower than in NetBeans 7.3.1. Test case is the following (ignore failures in GlassFish setup): ant -f performance ant -f performance/languages test -Dtest.includes=**/ScriptingNodePopupTest.class ##### Results for test_PHP_NodePopup ##### ##### [953ms, 17ms, 16ms, 15ms, ] ############################################# 7.3.1 results: ##### Results for test_PHP_NodePopup ##### ##### [326ms, 15ms, 15ms, 13ms, ] ############################################# Product Version: NetBeans IDE Dev (Build web-main-11294-on-20130808) Java: 1.7.0_40-ea; Java HotSpot(TM) 64-Bit Server VM 24.0-b55 Runtime: Java(TM) SE Runtime Environment 1.7.0_40-ea-b37 System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)
I will look at it. Jirko, would it be possible to have a profiler snapshot for it? Just to be sure... Thanks.
So, I started IDE and right clicked on a random PHP file in a PHP project - please correct me if these steps are wrong (the performance test itself fails for me with [1]). Unfortunately, I need a profiler snapshot since I cannot find any problem (also, the relevant code did not change for a long time). I created a profiler snapshot manually but everything seems to be OK to me - creating popup menu took 100 ms, the PHP part is: org.netbeans.modules.php.project.ui.logicalview.SrcNode$ObjectNode.getActions() 2.1551027 65,9 ms (2,2%) 49,9 ms Please reopen and attach a profiler snapshot so I can investigate it more. Thanks. [1] org.netbeans.jemmy.TimeoutExpiredException: Wait next node loaded under parent [Projects] when requested was [ ScriptingPerfTest ] (JTreeOperator.WaitNextNodeTimeout) Product Version: NetBeans IDE Dev (Build 20130814-0c03b28336ec) Java: 1.7.0_25; Java HotSpot(TM) 64-Bit Server VM 23.25-b01 Runtime: Java(TM) SE Runtime Environment 1.7.0_25-b15 System: Linux version 3.8.0-27-generic running on amd64; UTF-8; cs_CZ (nb)
More information: I tried to reproduce it with the file from the test - PHP took: org.netbeans.modules.php.project.PhpActionProvider.isActionEnabled() 0.35990676 10,3 ms (0,4%) 0,000 ms org.netbeans.modules.php.project.ui.logicalview.SrcNode$ObjectNode.getActions() 1.3746396 39,7 ms (1,4%) 26,6 ms I was "successful" only once, the problem was not in PHP but in Lookup: org.openide.util.lookup.MetaInfServicesLookup.beforeLookup() 10.691153 368 ms (10,7%) 368 ms 1 BTW I start IDE with no file opened and with a folder selected in the Projects view (so Navigator stays empty after startup). Thanks.
Reopening, we have compared snapshots from NB 7.3.1 and 7.4 dev. I will attach them together with a screenshot showing that the dev version is much slower than 7.3.1. Since I am not sure where to assign this issue, passing to ide/Code. Please evaluate, thanks.
Created attachment 138684 [details] snapshot for 7.3.1
Created attachment 138685 [details] snapshot for 7.4 dev
Created attachment 138686 [details] screenshot of snapshot comparison
Perhaps performance guys would know? Thank you in advance
It seems that the major difference is that in the 7.4 there are some menu items which are not initialized and need for example org.netbeans.modules.csl.core.GsfDataObject$EditorSupportFactory.createCookie() for its initialization. The way to investigate this would be to debug org.netbeans.modules.openide.awt.DefaultAWTBridge.createPopupPresenter() to see which popup menu item is causing this...
Sorry, I have no idea what I should do to investigate the cause of this issue (every action in TreeView.createPopup() is slower than in 7.3.1).