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 - First invocation of popup menu over project node in Projects tab is slow
Summary: First invocation of popup menu over project node in Projects tab is slow
Status: CLOSED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Projects UI (show other bugs)
Version: 4.x
Hardware: All All
: P2 blocker (vote)
Assignee: David Konecny
URL:
Keywords: PERFORMANCE
Depends on:
Blocks: 41535
  Show dependency tree
 
Reported: 2004-07-15 14:51 UTC by Marian Mirilovic
Modified: 2006-03-24 10:32 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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/NewFile.java
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:

[nb_dev](200410121800)
---------------------
                Linux RH9   JDS2  Sol9   W2K   WXP
 1st usage 	91 	115 	191 	78 	83
2nd usage 	65 	63 	111 	59 	65