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.openide.text.DataEditorSupport.messageHtmlName: LowPerformance took 52532 ms. | ||
---|---|---|---|
Product: | platform | Reporter: | Exceptions Reporter <exceptions_reporter> |
Component: | Text | Assignee: | Miloslav Metelka <mmetelka> |
Status: | NEW --- | ||
Severity: | normal | CC: | issues, Petah, rcacheira |
Priority: | P3 | Keywords: | PERFORMANCE |
Version: | 7.3 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | 199597 |
Attachments: |
nps snapshot
Proposed Patch |
Description
Exceptions Reporter
2013-03-14 08:30:54 UTC
Created attachment 132592 [details]
nps snapshot
Created attachment 140437 [details]
Proposed Patch
The problem is that org.openide.text.DataEditorSupport.messageHtmlName performs some I/O in EDT. Unfortunately, this method has to be blocking, and has to be called in EDT. I've prepared a patch that uses the last computed (or default) data to compute the result, and then checks (in background) that the result was correct. If the result was incorrect, it updates titles of the editor tabs. I'm not sure that the messageHtmlName method is used only to get editor tab titles. If there is some other place that calls this method, and that is not updated by CloneableEditorSupport.updateTitles, the patch is wrong. Reassigning to platform/Text. Mila, please evaluate the bug. Thank you. *** Bug 239108 has been marked as a duplicate of this bug. *** *** Bug 251099 has been marked as a duplicate of this bug. *** |