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: | Inefficient removing all nodes from Children.Array | ||
---|---|---|---|
Product: | platform | Reporter: | Alexander Simon <alexvsimon> |
Component: | Nodes | Assignee: | Alexander Simon <alexvsimon> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | vv159170 |
Priority: | P3 | ||
Version: | 8.0 | ||
Hardware: | PC | ||
OS: | Solaris | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | proposed patch |
Description
Alexander Simon
2014-09-16 06:29:58 UTC
Created attachment 149238 [details]
proposed patch
some notes: the UI freeze is caused by EDT requiring Mutex while client's are doing children.remove(children.getNodes()) We should either introduce children.clear() to have O(1) or temporary accept proposed patch to have 0(n) for such cases i think you may go ahead and apply the patch. fixed, change set: http://hg.netbeans.org/cnd-main/rev/7f27dde452cd Integrated into 'main-silver', will be available in build *201503060001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/7f27dde452cd User: Alexander Simon <alexvsimon@netbeans.org> Log: fixed Bug #247146 Inefficient removing all nodes from Children.Array |