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 227071 - org.netbeans.editor.BaseDocument.extWriteLock: LowPerformance took 186444 ms.
Summary: org.netbeans.editor.BaseDocument.extWriteLock: LowPerformance took 186444 ms.
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Smarty (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Martin Fousek
URL:
Keywords: PERFORMANCE
: 234698 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-03-06 01:30 UTC by Exceptions Reporter
Modified: 2013-08-23 13:01 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 199329


Attachments
nps snapshot (1.17 MB, application/nps)
2013-03-06 01:30 UTC, Exceptions Reporter
Details
nps snapshot (164.02 KB, application/nps)
2013-03-14 08:54 UTC, Alniks
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2013-03-06 01:30:30 UTC
This bug was originally marked as duplicate of bug 220919, 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 (Build 201302132200)
VM: Java HotSpot(TM) Client VM, 20.1-b02, Java(TM) SE Runtime Environment, 1.6.0_26-b03
OS: Windows 7

User Comments:
GUEST: Travamento da IDE



Maximum slowness yet reported was 186444 ms, average is 186444
Comment 1 Exceptions Reporter 2013-03-06 01:30:48 UTC
Created attachment 132232 [details]
nps snapshot
Comment 2 Milutin Kristofic 2013-03-07 16:57:40 UTC
at org.netbeans.modules.php.smarty.editor.TplBracesMatching.findMatches(TplBracesMatching.java:205)

Php Smarty has readlock and then start parsing. You shouldn't do that. Can you please change it?
Comment 3 Martin Fousek 2013-03-08 08:24:29 UTC
Yeah, of course. I took a look into source and the lock is even not necessary after the parsing phase. So I'll lock the document for much shorter time.

BTW, the slowness is from the parsing in the PHP where are many queries to the index, I passed the snapshot to the PHP editor.
Comment 4 Alniks 2013-03-14 08:54:42 UTC
Created attachment 132593 [details]
nps snapshot
Comment 5 Martin Fousek 2013-05-17 12:07:11 UTC
Thanks for reporting. Fixed in web-main #953e5df076ba.
Comment 6 Quality Engineering 2013-05-18 02:55:15 UTC
Integrated into 'main-golden', will be available in build *201305172300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/953e5df076ba
User: Martin Fousek <marfous@netbeans.org>
Log: #227071 - org.netbeans.editor.BaseDocument.extWriteLock: LowPerformance took 186444 ms.
Comment 7 Jaroslav Havlin 2013-08-23 13:01:34 UTC
*** Bug 234698 has been marked as a duplicate of this bug. ***