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.

Bug 227452 - org.openide.text.DataEditorSupport.messageHtmlName: LowPerformance took 52532 ms.
Summary: org.openide.text.DataEditorSupport.messageHtmlName: LowPerformance took 52532...
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: Text (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Miloslav Metelka
URL:
Keywords: PERFORMANCE
: 239108 251099 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-03-14 08:30 UTC by Exceptions Reporter
Modified: 2015-08-17 13:15 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 199597


Attachments
nps snapshot (41.20 KB, application/nps)
2013-03-14 08:30 UTC, Exceptions Reporter
Details
Proposed Patch (2.35 KB, patch)
2013-09-25 08:04 UTC, Jaroslav Havlin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2013-03-14 08:30:54 UTC
This bug was originally marked as duplicate of bug 218248, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 7.3 (Build 201302132200)
VM: OpenJDK 64-Bit Server VM, 20.0-b12, OpenJDK Runtime Environment, 1.6.0_27-b27
OS: Linux
Maximum slowness yet reported was 52532 ms, average is 52532
Comment 1 Exceptions Reporter 2013-03-14 08:30:57 UTC
Created attachment 132592 [details]
nps snapshot
Comment 2 Jaroslav Havlin 2013-09-25 08:04:29 UTC
Created attachment 140437 [details]
Proposed Patch
Comment 3 Jaroslav Havlin 2013-09-25 08:17:57 UTC
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.
Comment 4 Jaroslav Havlin 2013-12-04 15:47:42 UTC
*** Bug 239108 has been marked as a duplicate of this bug. ***
Comment 5 Jaroslav Havlin 2015-08-17 13:15:48 UTC
*** Bug 251099 has been marked as a duplicate of this bug. ***