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 234052 - org.openide.text.DataEditorSupport.openDocument: LowPerformance took 21403 ms.
Summary: org.openide.text.DataEditorSupport.openDocument: LowPerformance took 21403 ms.
Status: RESOLVED WONTFIX
Alias: None
Product: editor
Classification: Unclassified
Component: CSL (API & infrastructure) (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Milutin Kristofic
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2013-08-07 06:41 UTC by Exceptions Reporter
Modified: 2013-10-10 14:17 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 201048


Attachments
nps snapshot (41.03 KB, application/nps)
2013-08-07 06:41 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2013-08-07 06:41:32 UTC
Build: NetBeans IDE 7.3 (Build 201306052037)
VM: Java HotSpot(TM) 64-Bit Server VM, 19.0-b09, Java(TM) SE Runtime Environment, 1.6.0_23-b05
OS: Windows 7

User Comments:
GUEST: muy lento

GUEST: for Yiiframework



Maximum slowness yet reported was 22200 ms, average is 21801
Comment 1 Exceptions Reporter 2013-08-07 06:41:35 UTC
Created attachment 138380 [details]
nps snapshot
Comment 2 Jaroslav Havlin 2013-08-14 13:40:03 UTC
Method o.n.m.csl.api.UIUtils.open() calls NbDocument.openDocument() in EDT.
Maybe it's not necessary, according to javadoc in NbDocument.

Reassigning. Please evaluate, thank you.

Note: I've used exception report 674276, 685074 seems unrelated.
Comment 3 Svata Dedic 2013-08-30 18:10:08 UTC
It would be easy if it was not in the API and did not return success status. Because of the definition, it needs to block until the document opens.

I recommend to deprecate the method, and define a method that returns Future<Document> that can be waited on, if needed.
Comment 4 Milutin Kristofic 2013-10-10 14:17:30 UTC
Disk operations are slow on your computer, probably many processes working with disk.

java.io.FileInputStream.open[native]()	99.679985	3,459 ms (99.7%)	3,459 ms