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: | [Override Methods] dialog is very slow. | ||
---|---|---|---|
Product: | java | Reporter: | Petr Nejedly <pnejedly> |
Component: | Unsupported | Assignee: | Tomas Hurka <thurka> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | Keywords: | PERFORMANCE |
Priority: | P2 | ||
Version: | -S1S- | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | |||
Bug Blocks: | 26581 | ||
Attachments: | Part of thread dump during the freeze. |
Description
Petr Nejedly
2002-12-13 16:50:30 UTC
Created attachment 8328 [details]
Part of thread dump during the freeze.
OK, I don't have the best stack trace handy, but this snippet of code speaks for itself (from org.openide.src.Element): public String toString() { StringWriter sw = new StringWriter(); StyledDocument doc = createDocument(); IndentEngine indentator = IndentEngine.find(doc); PrintWriter pw = new PrintWriter(indentator.createWriter(doc, 0, sw)); // PrintWriter pw = new PrintWriter(sw); try { print(new DefaultElementPrinter(pw)); } catch (ElementPrinterInterruptException e) { // could not happen. } pw.close(); return sw.toString(); } Now look at the createDocument()... So maybe the problem is in teh editor (Too long time to prepare the indent engine but still it seems too heavyweight to just paint an item in a list... Fixed in trunk. I found out that the Element.toString() can be completely omitted. OK, it is fast enough now. Reorganization of java component |