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 233190 - Make the default instantiating iterator in the IDE asynchronous
Summary: Make the default instantiating iterator in the IDE asynchronous
Status: RESOLVED WORKSFORME
Alias: None
Product: platform
Classification: Unclassified
Component: Data Systems (show other bugs)
Version: 7.3
Hardware: All All
: P4 normal (vote)
Assignee: Jaroslav Havlin
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2013-07-22 14:15 UTC by Exceptions Reporter
Modified: 2013-10-21 15:07 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 202388


Attachments
nps snapshot (55.54 KB, application/nps)
2013-07-22 14:15 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2013-07-22 14:15:57 UTC
This issue was reported manually by jhavlin.
It already has 1 duplicates 


Build: NetBeans IDE 7.3 (Build 201302132200)
VM: Java HotSpot(TM) Client VM, 23.7-b01, Java(TM) SE Runtime Environment, 1.7.0_17-b02
OS: Windows 7

User Comments:
GUEST: Creating new HTML file



Maximum slowness yet reported was 21154 ms, average is 21154
Comment 1 Exceptions Reporter 2013-07-22 14:15:58 UTC
Created attachment 137569 [details]
nps snapshot
Comment 2 Jaroslav Havlin 2013-07-22 14:38:59 UTC
The slowness occurred while creating an HTML file.
Default instantiating iterator is used for this type of project, which is called synchronously.

Please consider creating a WizardDescriptor.AsynchronousInstantiatingIterator for related @TemplateRegistration.
Thank you.

(I'm afraid that fixing this in Data Systems could cause several problems. Moving the default instantiating iterator to background is a incompatible API change. Introducing a parameter for setting that the template should be created in background is possible, but is too complex for 7.4.)

Only one report so far. Fixing this will improve user experience, but the practical impact will be small (progress in modal dialog instead of slowness), so I'm decreasing priority for now.
Comment 3 Marek Fukala 2013-07-23 11:12:24 UTC
Shouldn't the issue be assigned to the openide.loaders then? I do not see any HTML stuff involved.
Comment 4 Jaroslav Havlin 2013-07-25 13:06:37 UTC
(In reply to comment #3)
> Shouldn't the issue be assigned to the openide.loaders then? I do not see any
> HTML stuff involved.
We can change the default instantiating iterator to an asynchronous one in the IDE, while keeping the synchronous one in other platform applications, using branding (advice from J. Tulach). So the API change will be quite safe. Thanks.
Comment 5 Jaroslav Havlin 2013-10-21 15:07:58 UTC
The behavior was changed by fix for bug 234745, all iterators are now processed
in background.
Thanks for reporting.