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 234851 - CodeCompletion took 4115 ms
Summary: CodeCompletion took 4115 ms
Status: NEW
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Petr Pisl
Depends on:
Reported: 2013-08-23 09:34 UTC by Petr Jiricka
Modified: 2014-07-25 08:30 UTC (History)
8 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 203292

nps snapshot (78.54 KB, application/nps)
2013-08-23 09:34 UTC, Petr Jiricka
nps snapshot (104.12 KB, application/nps)
2013-11-08 02:12 UTC, Petah
nps snapshot (319.92 KB, application/nps)
2013-12-04 01:30 UTC, peppertech

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Jiricka 2013-08-23 09:34:24 UTC
This bug was originally marked as duplicate of bug 233477, 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 web-main-11439-on-20130823)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.25-b01, Java(TM) SE Runtime Environment, 1.7.0_25-b15
OS: Mac OS X

User Comments:
pjiricka: First code completion for AngularJS directives.

Maximum slowness yet reported was 4115 ms, average is 4115
Comment 1 Petr Jiricka 2013-08-23 09:34:26 UTC
Created attachment 139114 [details]
nps snapshot
Comment 2 Svata Dedic 2013-08-27 13:51:42 UTC
Re. report #687833: the Code Completion background thread waits on the repository updater to finish; the updater works inside CSS embedding gathering diagnostics.

re. report #688058: Completion is blocked by PHP processing; not sure if that can be speeded up.

Moving to CSS for evaluation, CC:ing php
Comment 3 Ondrej Brejla 2013-08-27 13:59:14 UTC
Problem from #688058 is caused by slow WindowsNativeDispatcher.GetFileAttributes(), but I workarounded that (last week?) and it should work fast now.
Comment 4 Marek Fukala 2013-08-27 14:48:04 UTC
#report 687833:  CssAnalyzer.getExtendedDiagnostics() triggers checking of css property values. I can't say why it is so slow in this case, this is the first report which complains about it. 

Petre, what was the project you used when the report was generated?
Comment 5 Petr Jiricka 2013-08-27 14:56:37 UTC
I'll try to remember - right now I don't remember.
Comment 6 Petah 2013-11-08 02:12:06 UTC
Created attachment 141956 [details]
nps snapshot

Comment 7 peppertech 2013-12-04 01:30:12 UTC
Created attachment 142826 [details]
nps snapshot

was simply typing ko.ob and then hit ctrl-space.  It took over three minutes to return.
Comment 8 Vladimir Riha 2013-12-06 07:47:22 UTC
It happens almost every time I invoke cc in my JS file (~4500 lines), it is Angular's file with controllers. It makes code completion hard to use as I have to wait quite a lot.
Comment 9 Ondrej Brejla 2013-12-06 10:27:12 UTC
petah's problem seems to be slow file system on Win.

peppertech's problem seems to be JS related (no CSS in snapshot) -> reassigning.
Comment 10 Ondrej Brejla 2013-12-06 10:31:56 UTC
Lado your snapshots are JS related as well, same as peppertech's...slow JS structure scanner. I'll lower the priority again, reassign your snapshots to JS and increase that new issue priority.
Comment 11 Ondrej Brejla 2013-12-06 10:34:19 UTC
Lowering priority back.
Comment 12 Vladimir Riha 2013-12-06 10:45:42 UTC
OK, thank you for eval.
Comment 13 Petah 2013-12-08 21:01:07 UTC
So what can I do to increase the speed of my file system?