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 241440

Summary: org.netbeans.modules.editor.indent.IndentImpl.reformatLock: LowPerformance took 23876 ms.
Product: php Reporter: Exceptions Reporter <exceptions_reporter>
Component: Formatting & IndentationAssignee: Tomas Mysik <tmysik>
Status: RESOLVED WORKSFORME    
Severity: normal Keywords: PERFORMANCE
Priority: P3    
Version: 7.4   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 207313
Attachments: nps snapshot

Description Exceptions Reporter 2014-02-05 13:16:39 UTC
This bug was originally marked as duplicate of bug 230985, 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, 23.6-b04, Java(TM) SE Runtime Environment, 1.7.0_10-b18
OS: Linux

User Comments:
GUEST: pressed Ctrl + Shift + C to comment a line



Maximum slowness yet reported was 23876 ms, average is 23876
Comment 1 Exceptions Reporter 2014-02-05 13:16:42 UTC
Created attachment 144831 [details]
nps snapshot
Comment 2 Dusan Balek 2014-02-20 12:34:18 UTC
As can be seen from the attached snapshot, AWT EDT is blocked by
GsfReformatTask trying to acquire the parser lock while extremely slow
PHPHintsProvider task is in progress.
Comment 3 Ondrej Brejla 2014-02-20 12:40:40 UTC
About 60% of time spent in Lucene.
Comment 4 Tomas Mysik 2016-06-16 09:24:43 UTC
snapshot-747903 - deep PHP class hierarchy:
org.netbeans.modules.parsing.lucene.LuceneIndex.query ()	21 657 ms (71,7%)	21 657 ms (72%)

snapshot-760275 - JS scanning (currently irrelevant, we have ES6 now):
org.netbeans.modules.javascript2.editor.JsStructureScanner.getEmbededItems ()	48 432 ms (100%)	48 432 ms (100%)

snapshot-779514 - deep PHP class hierarchy:
org.netbeans.modules.parsing.impl.indexing.lucene.LayeredDocumentIndex.query ()	52 689 ms (32,8%)	52 689 ms (32,8%)

snapshot-814456 - fix of issue #245279 could help

snapshot-814565 - perhaps slower FS?
org.netbeans.api.project.FileOwnerQuery.getOwner ()	7 708 ms (30,4%)	7 708 ms (31,1%)

snapshot-818000 - fix of issue #245279 could help

Since there is only one report from NB 8.1 and this only report is from year 2015, closing as WORKSFORME. Let's wait for a new report or reopening this one.

Thanks.