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 46204

Summary: First invocation of popup menu over project node in Projects tab is slow
Product: projects Reporter: Marian Mirilovic <mmirilovic>
Component: Generic Projects UIAssignee: David Konecny <dkonecny>
Status: CLOSED FIXED    
Severity: blocker CC: issues
Priority: P2 Keywords: PERFORMANCE
Version: 4.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 41535    

Description Marian Mirilovic 2004-07-15 14:51:25 UTC
[nb_dev](200407141800), [jdk1.5.0](beta3 - b58) on
our lab machines:
                Linux RH9   JDS2  Sol9   W2K   WXP
 1st usage 	426 	417 	639 	429 	488
2nd usage 	68 	67 	117 	62 	65

Test case:
- run IDE
- Switch to Projects view
- Right-click on PerformanceTestData in Projects view
EXPECTED RESULT: Popup menu comes within 100ms.

on my faster notebook / RH Linux
9/Gnome/JDK1.5.0(beta3), it takes :
~220 ms
Comment 1 David Konecny 2004-09-27 10:56:42 UTC
I will look at it.
Comment 2 David Konecny 2004-09-27 17:21:28 UTC
Approximately half of the time is spent in
CommonProjectActions.newFileAction() action. I will check whether it
could be optimized somehow.
Comment 3 David Konecny 2004-09-28 16:32:45 UTC
I made newFileAction lazy. It improved numbers on my fast notebook
from 220-240 to 70-120. Please measure on your slower machines and let
me know if it is sufficient.

Fixed in:
Checking in src/org/netbeans/modules/project/ui/actions/
new revision: 1.15; previous revision: 1.14
Comment 4 Antonin Nebuzelsky 2004-10-14 12:59:12 UTC
Verified. Test results on lab machines now produce the following numbers:

                Linux RH9   JDS2  Sol9   W2K   WXP
 1st usage 	91 	115 	191 	78 	83
2nd usage 	65 	63 	111 	59 	65