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 181816 - [69cat] 66s in java.project.JavaTargetChooserPanelGUI$1$1.run()
Summary: [69cat] 66s in java.project.JavaTargetChooserPanelGUI$1$1.run()
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Platform (show other bugs)
Version: 6.x
Hardware: All All
: P2 normal (vote)
Assignee: David Strupl
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2010-03-11 01:56 UTC by stefan79
Modified: 2010-03-24 19:49 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 160173


Attachments
nps snapshot (256.00 KB, application/nps)
2010-03-11 01:56 UTC, stefan79
Details
nps snapshot (256.00 KB, application/nps)
2010-03-24 19:49 UTC, misterm
Details

Note You need to log in before you can comment on or make changes to this bug.
Description stefan79 2010-03-11 01:56:07 UTC
Build: NetBeans IDE Dev (Build 201002152000)
VM: Java HotSpot(TM) Client VM, 16.0-b13, Java(TM) SE Runtime Environment, 1.6.0_18-b07
OS: Windows XP

User Comments:
stefan79: While Scanning projects I tried to create a New Class (contextmenu in Project-View on a folder -> New Java Class).
After the dialog was shown, the IDE hanged for more than one Minute!

GUEST: creating a new class

stefan79: Selected two folders an pressed made a right-mouse-click



Maximum slowness yet reported was 66078 ms, average is 23783
Comment 1 stefan79 2010-03-11 01:56:14 UTC
Created attachment 95024 [details]
nps snapshot
Comment 2 Jaroslav Tulach 2010-03-11 03:59:45 UTC
The PackageView.findNonExcludedPackages shall be called outside of AWT as it can be quite expensive. Does 66s qualify for P2?
Comment 3 David Strupl 2010-03-11 10:13:55 UTC
All the time is spent in native IO operations. I agree that those should not be done in AWT thread. I am not sure whether the busy cursor will satisfy Stefan but I don't know any better solution for this.
Comment 4 Jaroslav Tulach 2010-03-11 11:12:53 UTC
You can show "Computing..." in the UI, disable the widget, switch the computation to another thread and when done, return to AWT and fill the UI.
Comment 5 David Strupl 2010-03-12 03:11:14 UTC
http://hg.netbeans.org/jet-main/rev/7452c04e4477
Comment 6 misterm 2010-03-24 19:49:34 UTC
Created attachment 95722 [details]
nps snapshot