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 246677 - Slow code completion for the RequireJS string
Summary: Slow code completion for the RequireJS string
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.1
Hardware: PC Linux
: P2 normal (vote)
Assignee: Petr Pisl
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2014-08-25 12:25 UTC by Martin Fousek
Modified: 2015-07-23 01:15 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
NPSS from slow CC (458.85 KB, application/octet-stream)
2014-08-25 12:25 UTC, Martin Fousek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Fousek 2014-08-25 12:25:18 UTC
Created attachment 148884 [details]
NPSS from slow CC

Product Version: NetBeans IDE Dev (Build 20140822-05d033af4090)
Java: 1.7.0_67; Java HotSpot(TM) 64-Bit Server VM 24.65-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_67-b01
System: Linux version 3.13.0-34-generic running on amd64; UTF-8; en_US (nb)

I was waiting 40s for the code completion in JS code which didn't appear during that time. I took a snapshot I'm attaching here for better evaluation.

BTW. the completion was invoked within the define block like:
define([
    'pages.dt/|'
]....

Thanks in advance.
Comment 1 Petr Pisl 2015-07-17 09:47:24 UTC
According to the snapshot, there are 5 code completion threads. 4 of them are parking, because are waiting for finishing parsing task, which the one of them is using to compute the code completion items. 

Unfortunately there is no way how to cancel computing code completion items for languages using CSL, which will solve this problem. 

I with Tomas will work on it.
Comment 2 Petr Pisl 2015-07-22 06:52:56 UTC
Fixed in web-main
Comment 3 Quality Engineering 2015-07-23 01:15:11 UTC
Integrated into 'main-silver', will be available in build *201507230001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/8d8d85d6be0b
User: Petr Pisl <ppisl@netbeans.org>
Log: #246677 - Slow code completion for the RequireJS string