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 225356

Summary: org.netbeans.modules.editor.indent.IndentImpl.reformatLock: LowPerformance took 15072 ms.
Product: php Reporter: Grelek
Component: EditorAssignee: Ondrej Brejla <obrejla>
Status: RESOLVED WORKSFORME    
Severity: normal CC: planetadeleste
Priority: P3 Keywords: PERFORMANCE
Version: 7.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 198000
Attachments: nps snapshot

Description Grelek 2013-01-25 15:41:22 UTC
This bug was originally marked as duplicate of bug 183962, 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.3 Beta 2 (Build 201211062253)
VM: OpenJDK 64-Bit Server VM, 23.2-b09, OpenJDK Runtime Environment, 1.7.0_09-b30
OS: Linux
Maximum slowness yet reported was 15072 ms, average is 15072
Comment 1 Grelek 2013-01-25 15:41:27 UTC
Created attachment 130653 [details]
nps snapshot
Comment 2 Dusan Balek 2013-08-22 07:54:19 UTC
Analyzing couple of recent snapshots attached to the Exception Reports, EDT is blocked by GsfReformatTask trying to acquire the parser lock while extremely slow PHP hints computation/parameters completion is in progress.
Comment 3 Ondrej Brejla 2013-08-22 08:24:29 UTC
There is a lot of very old snapshots, from 7.1 and such. Reformat is not blocked just by PHP hints, some newer snapshots contain php semantic highlighter, which has been fixed in 7.4 dev, some snapshots also contains slow HTML hints. We also implemented some cancellability to php hints provider, so try latest dev build and test it there. Thanks.