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.
See the attached snippet of OptimizeIt call stack (created when right-clicking package node in explorer). Enabling of Auto Comment action is quite expensive and does not scale well because it depends on the number of elements on classpath. Any way to make it faster would make faster all popup menus which have Auto Comment in Tools.
Created attachment 26065 [details] OptimizeIt screenshot
Here is the possible fix of this issue. It should improve speed in case a folder is selected (the same case as you measured). Please let me know if it helped.
Created attachment 26120 [details] proposed patch
The patch really helps. See the attached OptimizeIt screenshot.
Created attachment 26159 [details] OptimizeIt screenshot
Thanks. Fixed in /cvs/javadoc/src/org/netbeans/modules/javadoc/comments/AutoCommentAction.java,v <-- AutoCommentAction.java new revision: 1.34; previous revision: 1.33
Marking as verified.