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 178978

Summary: Invoking Save All took 20993 ms.
Product: guibuilder Reporter: Exceptions Reporter <exceptions_reporter>
Component: CodeAssignee: issues@guibuilder <issues>
Status: RESOLVED INVALID    
Severity: normal CC: arcnor
Priority: P3 Keywords: PERFORMANCE
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 162006
Attachments: nps snapshot
nps snapshot

Description Exceptions Reporter 2009-12-22 09:16:52 UTC
Build: NetBeans IDE 6.8 (Build 200912041610)
VM: Java HotSpot(TM) Client VM, 14.1-b02, Java(TM) SE Runtime Environment, 1.6.0_15-b03
OS: Linux, 2.6.31-16-generic, i386

User Comments:
arcnor: I've tried to start the debugger (first time since opening NetBeans)

GUEST: Loading a GUI form with a reasonable number of components in the GUI designer.


Maximum slowness yet reported was 20993 ms, average is 10729
Comment 1 Exceptions Reporter 2009-12-22 09:16:57 UTC
Created attachment 92863 [details]
nps snapshot
Comment 2 Exceptions Reporter 2009-12-23 05:36:13 UTC
Created attachment 92886 [details]
nps snapshot

Compiling
Comment 3 Antonin Nebuzelsky 2010-03-29 14:11:34 UTC
Change of default owner.
Comment 4 Jesse Glick 2010-04-08 22:36:11 UTC
A grab bag of problems lumped together by slowness reporter. Assigning arbitrarily to the first class I see (acc. to reverse chronological order); feel free to file bugs for other components, or just reassign when fixing your part, etc.

#349605, #339615, #331018: WebActionProvider.getTargetNames calls GlobalPathRegistry.getSourceRoots, which can be time-consuming when a lot of projects are open. ("we find all projects containg a web service" - is this really necessary? can it be precomputed, or done asynch with a progress notification?)

#345084, #338820,  #338735, maybe #338801: FormEditor.saveFormData results in JavaCodeGenerator.regenerateCode being called, which can apparently be quite slow, and is a bit surprising. #338797, #338797 related.

#344989: Maven's JumpAction runs in EQ even though it does some relatively expensive classpath calculations.

#333845: parsing.impl.indexing.RepositoryUpdater reacting to file change events synchronously, could probably do this asynch instead.

...and then I got tired of categorizing them.
Comment 5 David Konecny 2010-04-08 22:50:40 UTC
(In reply to comment #4)
> #349605, #339615, #331018: WebActionProvider.getTargetNames calls
> GlobalPathRegistry.getSourceRoots, which can be time-consuming when a lot of
> projects are open. ("we find all projects containg a web service" - is this
> really necessary? can it be precomputed, or done asynch with a progress
> notification?)

WebActionProvider.getTargetNames() performance problems are already tracked as issue 182840. Passing to form.
Comment 6 Jan Stola 2010-04-14 10:19:24 UTC
A pile of trash created by slowness reporter => closing as invalid.