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 237174 - org.openide.filesystems.FileObject.toURL: LowPerformance took 106773 ms.
Summary: org.openide.filesystems.FileObject.toURL: LowPerformance took 106773 ms.
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 7.4
Hardware: All All
: P2 normal (vote)
Assignee: Sergey Petrov
URL:
Keywords: PERFORMANCE
: 235532 238053 240906 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-10-16 08:43 UTC by zmirc
Modified: 2014-01-24 09:37 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 204614


Attachments
nps snapshot (1.44 MB, application/nps)
2013-10-16 08:43 UTC, zmirc
Details

Note You need to log in before you can comment on or make changes to this bug.
Description zmirc 2013-10-16 08:43:35 UTC
This bug was originally marked as duplicate of bug 233560, 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.4 RC1 (Build 201309162201)
VM: Java HotSpot(TM) Client VM, 24.0-b56, Java(TM) SE Runtime Environment, 1.7.0_40-b43
OS: Windows 8

User Comments:
zmirc: I was in a Java Bean class, and I clicked on a JPQL query name with CTRL + click in order make NetBeans send me directly to the place where that JPQL query was defined (in an JPA Entity class).
I tried this twice and it was the same result. NetBeans freezes.



Maximum slowness yet reported was 106773 ms, average is 106773
Comment 1 zmirc 2013-10-16 08:43:48 UTC
Created attachment 141127 [details]
nps snapshot
Comment 2 Jaroslav Havlin 2013-10-16 11:28:45 UTC
The slowness originates in this method:
o.n.m.j2ee.persistence.editor.hyperlink.NamedQueryHyperlinkProvider.getLine()
(file NamedQueryHyperlinkProvider.java, line 163).

Method org.openide.text.LazyLines.iterator(), which was quite slow in this case,
was called in EDT. (Maybe the Line.Set could be somehow preinitialized.)
I'm not sure whether the problem is in LazyLines, or in NamedQueryHyperlinkProvider itself.

Reassigning to javaee/Persistence. Please evaluate. Thanks.
Comment 3 Sergey Petrov 2013-10-23 10:09:43 UTC
ok, I'm not sure preinitialize also nice idea if it may take up to 100s and also it's related to some filesystem operations as I see, I may need to find another way for navigation, or may be the feature may need to be removed.

I see both reports are  maven based, it may be something in maven fs handling also.
Comment 4 Sergey Petrov 2013-10-30 20:35:08 UTC
np more org.openide.text.LazyLines.iterator()
http://hg.netbeans.org/web-main/rev/83612dca97e2
Comment 5 Sergey Petrov 2013-11-07 09:48:31 UTC
*** Bug 238053 has been marked as a duplicate of this bug. ***
Comment 6 Sergey Petrov 2014-01-14 14:57:35 UTC
*** Bug 235532 has been marked as a duplicate of this bug. ***
Comment 7 Jaroslav Havlin 2014-01-24 09:37:12 UTC
*** Bug 240906 has been marked as a duplicate of this bug. ***