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.
Summary: | org.netbeans.modules.cordova.platforms.api.ProcessUtilities.callProcess: LowPerformance took 11549 ms. | ||
---|---|---|---|
Product: | web | Reporter: | ytn01 |
Component: | Cordova | Assignee: | Jan Becicka <jbecicka> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | jbecicka |
Priority: | P3 | Keywords: | PERFORMANCE |
Version: | 7.4 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | 203474 |
Attachments: | nps snapshot |
Description
ytn01
2013-08-30 20:01:47 UTC
Created attachment 139517 [details]
nps snapshot
Javadoc for update method says: Component should load its data here. You should not do any time-consuming operations inside the constructor, because it blocks initialization of OptionsDialog. Initialization should be implemented in update method. So I do time-consuming operations in update method - but it is still called in AWT EQ. Please evaluate. (In reply to Jan Becicka from comment #2) > Javadoc for update method says: > Component should load its data here. You should not do any time-consuming > operations inside the constructor, because it blocks initialization of > OptionsDialog. Initialization should be implemented in update method. > > So I do time-consuming operations in update method - but it is still called > in AWT EQ. Please evaluate. You should load your data in the update method but you should make sure that this is done off EDT. update() in options.api just calls each controller's update method. You know what needs to be loaded, what UI components need to be shown and how to sync the whole process. re-assigning back so that the loding of required data is done off EDT and the UI is then appropriately updated. Thank you Changeset: 8d05c8d1b9cf Author: Jan Becicka <jbecicka@netbeans.org> Date: 2013-09-02 12:42 Message: Integrated into 'main-silver', will be available in build *201309030001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/8d05c8d1b9cf User: Jan Becicka <jbecicka@netbeans.org> Log: Issue #235335 - org.netbeans.modules.cordova.platforms.api.ProcessUtilities.callProcess: LowPerformance took 11549 ms. |