Please use the Apache issue tracking system for new NetBeans issues (https://issues.apache.org/jira/projects/NETBEANS0/issues) !!
Bug 250872 - Context menu on projects right-click appears after 2 seconds (over 300 modules)
Context menu on projects right-click appears after 2 seconds (over 300 modules)
Status: RESOLVED FIXED
Product: projects
Classification: Unclassified
Component: Maven
8.1
PC Windows XP
: P3 (vote)
: TBD
Assigned To: Tomas Stupka
issues@projects
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2015-03-03 14:29 UTC by NukemBy
Modified: 2015-04-23 16:34 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
:


Attachments
selfsampler-2seconds-for-context-menu.npss (44.94 KB, application/octet-stream)
2015-03-03 14:29 UTC, NukemBy
Details
Screenshot of sampling - org.netbeans.modules.maven.ActionProviderImpl is too slow (123.42 KB, image/png)
2015-03-03 16:36 UTC, markiewb
Details

Note You need to log in before you can comment on or make changes to this bug.
Description NukemBy 2015-03-03 14:29:01 UTC
Created attachment 152369 [details]
selfsampler-2seconds-for-context-menu.npss

Steps to reproduce:

1. Create new Project Group

2. Open in that project group the test project from here (https://netbeans.org/bugzilla/show_bug.cgi?id=250833)

3. Wait until all background processes are completed

4. In project view 
   - right click over empty space -> Collapse All
   - press Ctrl+A to select all (280 modules)
   - right click on any module

   --> Context menu appears after 1.5 seconds, in my real project it takes more than 2 seconds.
Comment 1 markiewb 2015-03-03 16:36:55 UTC
Created attachment 152375 [details]
Screenshot of sampling - org.netbeans.modules.maven.ActionProviderImpl is too slow

See screenshot - org.netbeans.modules.maven.ActionProviderImpl is too slow
Comment 2 Tomas Stupka 2015-04-23 14:37:45 UTC
most of the time spent while retrieving actions for the ctx menu, which crumbles down into many calls, most of them without an obvious potential for improvement. It is a big amount of projects.

project packaging in scope of ActionToGoalUtils.isActionEnable is accessed repeatably event if the value was already queried for the given project. 
Avoiding that saved in my test scenario around 30% of the necessary time, so will fix at least that.
Comment 3 Tomas Stupka 2015-04-23 16:34:53 UTC
fixed in jet-main #99c3270eda64


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo