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: | Slow search for node at caret position in Navigator tree | ||
---|---|---|---|
Product: | editor | Reporter: | KhArtNJava |
Component: | CSL (API & infrastructure) | Assignee: | Svata Dedic <sdedic> |
Status: | RESOLVED WONTFIX | ||
Severity: | normal | CC: | alexvsimon, alexyarm, AvanOsch, cdicarlo, cihan53, cyhelsky, davideconsonni, desmithjr, dkonecny, dominikof, ecerichter, elmanu88, ewisuri, exceptions_reporter, fedind, haskovec, HelmarH, iTenzo, jacobrodriguezrondan, janario, joris.willems, jyeary, kenchen, KhArtNJava, kimultd, luchop00, luki100011, mfukala, nicu2005, pjiricka, pmachado, powellblyth, PSDCoder, qingyue, Sam.MIT, udoyen, vriha, webfox, zaghtech, zaheedam |
Priority: | P3 | Keywords: | PERFORMANCE |
Version: | 7.2 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | 188254 |
Attachments: | nps snapshot |
Description
KhArtNJava
2012-05-23 12:50:14 UTC
Created attachment 119773 [details]
nps snapshot
setting caret in the editor triggers ElementNode.getNodeForOffset() which tries to find the leaf-most element in the tree hierarchy which requires recursive calls to HtmlStructureItems.getNestedItems() (which does PM.runUserTask(...) ) *** Bug 212996 has been marked as a duplicate of this bug. *** In report 582233, the AWT is blocked by mere parent Node expansion. Children of the HTML node must be parsed, but parsing loop is evaluating HTML hints in the report. . It would be probably better to create child nodes in a RP, and display a temporary 'Please wait' pseudo-node, iff the Item does not return nodes within specified time (100ms or so) my comment #2 is related to the report 581730 Changeset: 02c8dd0a32eb Author: Svata Dedic <sdedic@netbeans.org> Date: 2012-06-11 14:49 Message: Issue #212895 - LowPerformance took 6958 ms.: fixed Calls to getNestedItems() made asynchronous, Navigator paints WAIT node if nested items cannot be fetched in 100ms. *** Bug 214058 has been marked as a duplicate of this bug. *** Integrated into 'main-golden', will be available in build *201206150001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/02c8dd0a32eb User: Svata Dedic <sdedic@netbeans.org> Log: Issue #212895 - LowPerformance took 6958 ms.: fixed Calls to getNestedItems() made asynchronous, Navigator paints WAIT node if nested items cannot be fetched in 100ms. The change was reverted in trunk (pending propagation into 7.2 branch under HR rules), see issue #214421. Related issues introduced by the change: * issue #214178 * issue #214316 Integrated into 'releases', will be available in build *201206212341* or newer. Wait for official and publicly available build. Changeset: http://hg.netbeans.org/releases/rev/340b333e2f51 User: Svata Dedic <sdedic@netbeans.org> Log: Issue #214421 - Withdraw poorly tested fix for #212895: fixed Reverted improper fix for issue #212895 Integrated into 'main-golden', will be available in build *201206220002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/b311735c9afc User: Svata Dedic <sdedic@netbeans.org> Log: Issue #214421 - Withdraw poorly tested fix for #212895: fixed Reverted improper fix for issue #212895 My last report 605288 is related to running html in Chrome with IDE integration turned on. Should I separate it? This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue. Thanks for your cooperation, NetBeans IDE 8.2 Release Boss |