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 248260 - Code completion still slow
Summary: Code completion still slow
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.0.1
Hardware: PC Windows 7
: P1 normal with 4 votes (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-29 21:29 UTC by mdzaebel
Modified: 2015-07-15 13:07 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
coce completion (532.41 KB, application/octet-stream)
2014-11-19 09:18 UTC, szmulik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mdzaebel 2014-10-29 21:29:31 UTC
On non trivial projects, the code completion often needs >5 sec even for simplest getter/setter. After installing the new version 8.0.1 it was faster for a time and then degraded again. I'm using Java 8_u20. Within lambdas, the problem seems to increase and sometimes doesn't even work (which is just a little bit better in Eclipse, as it does not freeze the IDE). 

I'm a Netbeans fan but unfortunately had to switch to Eclipse due to this problem.

Don't underestimate this problem! Many advanced users will not complain but just say "too slow ..." and change.

Best regards, Marc Dzaebel
Comment 1 Dusan Balek 2014-10-30 09:04:33 UTC
Could you please create a profiler snapshot using the Profile the IDE (Alt+Shif+Y) action, and attach it to the issue? Thanks.
Comment 2 szmulik 2014-11-19 09:17:38 UTC
I have the same problem 
After installing 8.0.1 code completion was faster but after installing some updates yesterday it take about 5 minutes
Comment 3 szmulik 2014-11-19 09:18:16 UTC
Created attachment 150565 [details]
coce completion
Comment 4 Dusan Balek 2014-11-21 15:20:14 UTC
As can be seen from the attached profiler snapshot, code completion is waiting for an extremely slow JsStructureScanner running in Parsing API loop. Reassigning to JS support.
Comment 5 mdzaebel 2014-11-22 11:22:26 UTC
In order to reproduce the original (non JS) problem, I started Netbeans and closed all projects in the group and reopened some of them. After that, all code completions work fine. However, I also use JRE 1.8.0_40-ea, so the problem might have been a side effect of other projects or the new JDK/JRE or an installation problem. As I can't reproduce the problem any more, you might close the original issue. If the problem recurs, I'll post a new issue.
Comment 6 Petr Pisl 2015-07-15 13:07:15 UTC
As Dusan wrote, according the snapshot the problem is in JsStructureScanner that could not be canceled during computing the items. Recently there was added fix, which allows to cancel long tasks and now it is possible to cancel JsStrucutreScanner as well. This should solve also this issues.