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 214275 - 2.4s - code completion, utilities.toURI
Summary: 2.4s - code completion, utilities.toURI
Status: RESOLVED WORKSFORME
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal with 1 vote (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords: PERFORMANCE
: 231745 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-06-15 11:41 UTC by KhArtNJava
Modified: 2013-07-30 14:05 UTC (History)
19 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 189571


Attachments
nps snapshot (13.98 KB, application/nps)
2012-06-15 11:41 UTC, KhArtNJava
Details

Note You need to log in before you can comment on or make changes to this bug.
Description KhArtNJava 2012-06-15 11:41:22 UTC
This bug was originally marked as duplicate of bug 209906, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE Dev (Build 201206150001)
VM: Java HotSpot(TM) Client VM, 22.1-b02, Java(TM) SE Runtime Environment, 1.7.0_03-b05
OS: Windows 7
Maximum slowness yet reported was 3748 ms, average is 3097
Comment 1 KhArtNJava 2012-06-15 11:41:28 UTC
Created attachment 120901 [details]
nps snapshot
Comment 2 Tomas Zezula 2012-06-15 11:51:44 UTC
Caused by reflection in Utilities.toURI
Comment 3 Jaroslav Tulach 2012-06-18 07:47:19 UTC
I do not think this is caused by reflection. For example:

org.openide.util.Utilities.toURI()	89.72246	1 497 ms (89,7%)	1 497 ms	16

but all the time is spent in 

sun.nio.fs.WindowsPath.toUri()	89.17529	1 488 ms (89,2%)	1 488 ms	17

so the reflection is not the problem. Btw. Tomáši, org.openide.util.Utilities don't belong to filesystem API.
Comment 4 Tomas Zezula 2013-07-11 16:05:27 UTC
*** Bug 231745 has been marked as a duplicate of this bug. ***
Comment 5 Stanislav Aubrecht 2013-07-30 14:05:43 UTC
As of version 7.4 NetBeans have switched to JDK 1.7 so there's no longer reflection code in Utilities.toURI
All slowness reports from recent dev builds are mismatched (the event queue just waits for the next event).

Please reopen if still reproducible in recent builds, thanks.