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 171399 - NodeFactorySupport.DelegateChildren should be asynchronous
Summary: NodeFactorySupport.DelegateChildren should be asynchronous
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Projects UI (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: Milos Kleint
URL: http://statistics.netbeans.org/except...
Keywords:
: 173449 173500 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-09-03 13:22 UTC by misterm
Modified: 2009-10-16 22:02 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 157700


Attachments
nps snapshot (34.23 KB, bin/nps)
2009-09-04 13:47 UTC, dheffelfinger
Details

Note You need to log in before you can comment on or make changes to this bug.
Description misterm 2009-09-03 13:22:56 UTC
Build: NetBeans IDE Dev (Build 090901)
VM: Java HotSpot(TM) Client VM, 10.0-b19, Java(TM) SE Runtime Environment, 1.6.0_04-b12
OS: Windows XP, 5.1, x86
User comments: Expanding a node
Maximum slowness yet reported was 5573 ms, average is 4397
Comment 1 dheffelfinger 2009-09-04 13:47:29 UTC
Build: NetBeans IDE Dev (Build 200909030951)
VM: Java HotSpot(TM) Client VM, 14.0-b16, Java(TM) SE Runtime Environment, 1.6.0_14-b08
OS: Windows XP, 5.1, x86

User Comments: 

Maximum slowness yet reported was 10529 ms, average is 5419
Comment 2 dheffelfinger 2009-09-04 13:47:33 UTC
Created attachment 87109 [details]
nps snapshot
Comment 3 Exceptions Reporter 2009-09-04 13:47:38 UTC
This issue already has 6 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=157700
Comment 4 t_h 2009-09-04 15:14:34 UTC
As I wrote in issue #167506 DelegateChildren should be asynchronous.
Comment 5 Milan Kubec 2009-09-09 11:52:56 UTC
Milosi, please take a look as it is all your code. Thanks.
Comment 6 Milan Kubec 2009-10-02 12:22:41 UTC
*** Issue 173500 has been marked as a duplicate of this issue. ***
Comment 7 Exceptions Reporter 2009-10-06 18:13:08 UTC
This issue already has 13 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=157700
Comment 8 t_h 2009-10-08 15:35:02 UTC
*** Issue 173449 has been marked as a duplicate of this issue. ***
Comment 9 Exceptions Reporter 2009-10-09 06:57:55 UTC
This issue already has 24 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=157700
Comment 10 Milos Kleint 2009-10-15 09:55:41 UTC
http://hg.netbeans.org/main/rev/9e319c1450ee
Comment 11 Jaroslav Tulach 2009-10-16 14:56:01 UTC
It would be ultimately simpler to reuse asynchronous support provided by

http://bits.netbeans.org/dev/javadoc/org-openide-nodes/org/openide/nodes/Children.html#create(org.openide.nodes.ChildFactory,,
%20boolean)

The initial diff might be bigger, but it would reduce the number of your code and also correctly implement behaviour 
of getNodes(true).
Comment 12 Quality Engineering 2009-10-16 22:02:18 UTC
Integrated into 'main-golden', will be available in build *200910161401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/9e319c1450ee
User: Milos Kleint <mkleint@netbeans.org>
Log: #171399 offload work from adNotify to Rp thread, add loading node