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 239942 - Slow code completion
Summary: Slow code completion
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.0
Hardware: PC Linux
: P4 normal with 1 vote (vote)
Assignee: jcreyf
Depends on:
Reported: 2014-01-03 06:02 UTC by jcreyf
Modified: 2014-01-07 01:37 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:

Profiler output for a slow code completion (184.57 KB, application/octet-stream)
2014-01-07 01:21 UTC, jcreyf
IDE logs (141.57 KB, application/x-gzip)
2014-01-07 01:23 UTC, jcreyf
Profiler output for another slow code completion (227.57 KB, application/octet-stream)
2014-01-07 01:27 UTC, jcreyf
IDE logs (179.21 KB, application/x-gzip)
2014-01-07 01:28 UTC, jcreyf

Note You need to log in before you can comment on or make changes to this bug.
Description jcreyf 2014-01-03 06:02:32 UTC
[ BUILD # : 201401020002 ]
[ JDK VERSION : 1.7.0_25 ]

I've been concentrating on JavaScript development and am getting quite a few
silent "slow code completion detection" warnings.
It can take up to 7 seconds for a completion to finish.
I'm not seeing these delays in Netbeans 7.4, so I assume this is related to new
Comment 1 Vladimir Riha 2014-01-03 07:52:25 UTC
Please attach some profiling snapshots (see [1]) during the slow autocompletion. Thank you in advance 

Comment 2 jcreyf 2014-01-07 01:21:37 UTC
Created attachment 143649 [details]
Profiler output for a slow code completion
Comment 3 jcreyf 2014-01-07 01:23:47 UTC
Created attachment 143650 [details]
IDE logs

IDE logs leading up to profile output in bug239942_SlowCodeCompletion_1.npss
Comment 4 jcreyf 2014-01-07 01:27:17 UTC
Created attachment 143651 [details]
Profiler output for another slow code completion

I had installed a fresh Netbeans daily build (201401060002) and apparently forgot to configure the proxy server for the first profiler snapshot.  Not sure if that makes a difference, but I decided to fix the proxy settings, bounce the IDE and try again.
This profiler output is for a new slowness warning without network connectivity issues.
Comment 5 jcreyf 2014-01-07 01:28:34 UTC
Created attachment 143652 [details]
IDE logs

These IDE logs map to the profiler output in bug239942_SlowCodeCompletion_2.npss
Comment 6 jcreyf 2014-01-07 01:37:48 UTC
Hi Vladimir,

I've updated to daily build 201401060002.
This build seems better with fewer slowness reports.
I captured occurrences in the profiler and attached both the profiler output and IDE logs.

I work in 2 different locations.  One where I need to go through a proxy server to get onto the internet and another where I have direct access.
I had forgotten to flip the proxy server settings in the IDE when I captured the first issue, so I decided to fix the setting and bounce the IDE.  Then I captured the 2nd slowness occurrence and attached the files for that too.

As I said, I seem to be getting fewer warnings in this build.
I'll use it for a couple days and will update the ticket if the situation changes.