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 248084 - CodeCompletion took 2972 ms.
Summary: CodeCompletion took 2972 ms.
Status: RESOLVED WONTFIX
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal with 1 vote (vote)
Assignee: Tomas Mysik
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2014-10-21 22:47 UTC by cwt137
Modified: 2016-06-15 12:31 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 212886


Attachments
nps snapshot (30.42 KB, application/nps)
2014-10-21 22:47 UTC, cwt137
Details

Note You need to log in before you can comment on or make changes to this bug.
Description cwt137 2014-10-21 22:47:14 UTC
This bug was originally marked as duplicate of bug 240058, 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 2014-10-13_09-11-13)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.7-b01, Java(TM) SE Runtime Environment, 1.7.0_17-b02
OS: Windows 7

User Comments:
cwt137: Just tying to get autocompletion on an object



Maximum slowness yet reported was 2972 ms, average is 2972
Comment 1 cwt137 2014-10-21 22:47:16 UTC
Created attachment 150035 [details]
nps snapshot
Comment 2 Tomas Mysik 2016-06-15 12:31:23 UTC
Evaluated just a few latest snapshots (these ones are more relevant):

snapshot-248084 - slow FS:
java.io.WinNTFileSystem.canonicalize0[native] ()	407 ms (18,5%)	407 ms (18,5%)
java.io.WinNTFileSystem.canonicalizeWithPrefix0[native] ()	100 ms (4,6%)	100 ms (4,6%)
java.io.Win32FileSystem.hashCode ()	39,0 ms (1,8%)	39,0 ms (1,8%)

snapshot-812865 - deep type hierarchy. I hope fixing issue #245279 could help here.

snapshot-819835 - slow FS:
java.io.WinNTFileSystem.getBooleanAttributes[native] ()	1 991 ms (52,2%)	1 991 ms (52,2%)

snapshot-820545 - CSS completion; slow FS:
java.io.UnixFileSystem.getBooleanAttributes0[native] ()	204 ms (12,8%)	204 ms (30,4%)
java.io.UnixFileSystem.getBooleanAttributes0[native] ()	60,2 ms (3,8%)	60,2 ms (9%)
java.io.UnixFileSystem.getBooleanAttributes0[native] ()	170 ms (10,7%)	170 ms (18,5%)
java.io.UnixFileSystem.getBooleanAttributes0[native] ()	296 ms (18,6%)	296 ms (32,2%)

snapshot-821711 - slow FS (plus Lookup?):
java.io.UnixFileSystem.canonicalize0[native] ()	308 ms (11,3%)	308 ms (12,8%)
java.io.UnixFileSystem.getBooleanAttributes0[native] ()	197 ms (7,3%)	197 ms (8,2%)
java.io.UnixFileSystem.getBooleanAttributes0[native] ()	78,1 ms (2,9%)	78,1 ms (3,2%)

snapshot-821712 - slow FS (plus Lookup?):
java.io.UnixFileSystem.canonicalize0[native] ()	127 ms (9,9%)	127 ms (9,9%)
java.io.FileInputStream.readBytes[native] ()	78,4 ms (6,1%)	78,4 ms (6,1%)


So, mostly slow FS issues we cannot do anything about, sorry. As I wrote, I hope that fix of the issue #245279 should help in most of the cases.

Thanks for reporting.