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 241009

Summary: org.netbeans.modules.parsing.impl.RunWhenScanFinishedSupport.runWhenScanFinished: LowPerformance took 273157 ms.
Product: editor Reporter: Exceptions Reporter <exceptions_reporter>
Component: CSL (API & infrastructure)Assignee: Tomas Zezula <tzezula>
Status: RESOLVED FIXED    
Severity: normal CC: alexvsimon, bfanger, cwt137, DarylLynCairnStack, FatKat, gevorg_stepanyan, malmoth, pinox1990, ppisl, qingyue, salvamb, silasstofel, tzezula, vv159170
Priority: P2 Keywords: PERFORMANCE
Version: 7.4   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 206997
Attachments: nps snapshot
Proposed SPI

Description Exceptions Reporter 2014-01-27 13:37:24 UTC
This bug was originally marked as duplicate of bug 213998, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 7.4 (Build 201310111528)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.45-b08, Java(TM) SE Runtime Environment, 1.7.0_45-b18
OS: Windows 7

User Comments:
GUEST: I had opened 8 php files and 1 js file.
I have a macro recorded for inserting "console.log(${cursor})" in code whenever I type "c", "l" and space. Low performance took after I runned my macro



Maximum slowness yet reported was 273157 ms, average is 273157
Comment 1 Exceptions Reporter 2014-01-27 13:37:54 UTC
Created attachment 144407 [details]
nps snapshot
Comment 2 Tomas Zezula 2014-02-01 11:58:20 UTC
CSL GsfCodeTemplateProcessor calls PM.parseWhenScanFinished from EDT.
The parser lock is held by JavaScript structure scanner.
Comment 3 Tomas Zezula 2015-06-25 19:58:03 UTC
Created attachment 154399 [details]
Proposed SPI

An generic CSL SPI.
Comment 4 Tomas Zezula 2015-06-26 12:01:20 UTC
Fixed jet-main cb89b4407b38
Comment 5 Quality Engineering 2015-06-27 07:15:27 UTC
Integrated into 'main-silver', will be available in build *201506270401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/cb89b4407b38
User: Tomas Zezula <tzezula@netbeans.org>
Log: #241009:org.netbeans.modules.parsing.impl.RunWhenScanFinishedSupport.runWhenScanFinished: LowPerformance took 273157 ms