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

Summary: Slow code completion for the RequireJS string
Product: javascript Reporter: Martin Fousek <marfous>
Component: EditorAssignee: Petr Pisl <ppisl>
Status: RESOLVED FIXED    
Severity: normal CC: mjanicek, tzezula
Priority: P2 Keywords: PERFORMANCE
Version: 8.1   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: NPSS from slow CC

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