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 234058 - org.netbeans.modules.editor.indent.IndentImpl.reformatLock: LowPerformance took 367252 ms.
Summary: org.netbeans.modules.editor.indent.IndentImpl.reformatLock: LowPerformance to...
Status: RESOLVED WORKSFORME
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Ondrej Brejla
URL:
Keywords: PERFORMANCE
: 235054 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-08-07 08:41 UTC by Exceptions Reporter
Modified: 2013-08-27 10:15 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 202880


Attachments
nps snapshot (1.18 MB, application/nps)
2013-08-07 08:41 UTC, Exceptions Reporter
Details
Self sample (274.80 KB, application/octet-stream)
2013-08-25 22:37 UTC, Petah
Details
Test PHP file (6.84 KB, application/octet-stream)
2013-08-25 22:40 UTC, Petah
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2013-08-07 08:41:29 UTC
This issue was reported manually by obrejla.
It already has 1 duplicates 


Build: NetBeans IDE 7.3 (Build 201306052037)
VM: Java HotSpot(TM) Client VM, 23.7-b01, Java(TM) SE Runtime Environment, 1.7.0_17-b02
OS: Windows 7

User Comments:
GUEST: One fresh project open, tried to create an empty html page, plus background scanning of files keeps freezing this IDE, with no projects open



Maximum slowness yet reported was 367252 ms, average is 367252
Comment 1 Exceptions Reporter 2013-08-07 08:41:44 UTC
Created attachment 138383 [details]
nps snapshot
Comment 2 Marek Fukala 2013-08-07 09:00:31 UTC
The tokenizer in Html5Parser.parse() took all the time. Almost no chance to fix w/o a reproducible case.

Is the issue reproducible? If so please attach steps to reproduce or the files/projects where it happens.

Thank you in advance.
Comment 3 Petah 2013-08-25 22:36:35 UTC
This is happening every time for me when I try to use a code template.

I type fcom then press tab, NB freezes for about 15 seconds.

The file is pure PHP, there is no HTML in it.
Comment 4 Petah 2013-08-25 22:37:22 UTC
Created attachment 139218 [details]
Self sample
Comment 5 Petah 2013-08-25 22:40:01 UTC
Created attachment 139219 [details]
Test PHP file

Happened 5 times in a row on this file. Selected between 2 methods, and triggered a code template (fcom[tab]).
Comment 6 Marek Fukala 2013-08-26 10:07:26 UTC
EDT blocked waiting for parsing lock, while parsing thread busy w/ php tasks - PHPCodeCompletion.complete() in code completion thread & PHPStructureScanner .scan() in editor parsing thread.

IMHO the real bug is that the lib.editor.codetemplates.CodeTemplateInsertHandler.insertTemplate() does try to obtain the editor.indent.api.Reformat.lock() which AFAIR can take long time as it usually means parsing.

Passing to php ...
Comment 7 Ondrej Brejla 2013-08-26 11:37:33 UTC
Resolving URLs which is slow in the snapshot was fixed few days ago. Also Signature deocding and encoding was fixed (today). It's almost 30% saved time. So you can try the latest dev build. There is also about 40% time spent in index...and with that I can't do anything. Closing as worksforme.
Comment 8 Ondrej Brejla 2013-08-27 10:15:08 UTC
*** Bug 235054 has been marked as a duplicate of this bug. ***