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.
Build: NetBeans IDE 7.0 Beta (Build 201011152355) VM: Java HotSpot(TM) 64-Bit Server VM, 16.0-b13, Java(TM) SE Runtime Environment, 1.6.0_18-b07 OS: Windows 7 User Comments: claudsan: 1 - Open project 2 - Open File in Project Maximum slowness yet reported was 20992 ms, average is 12503
Created attachment 104882 [details] nps snapshot
contrib/php.smarty issue indenter locked by document's lock obtained during lexing called from parsing thread. The lexing is unbearably long. Martine, you cannot do this (TplTopLexer): private boolean isSmartyOpenDelimiter(CharSequence text) { return (text.toString().endsWith(metadata.getOpenDelimiter())); } text.toString() clones the whole lexer's cached underlying source. Apparently the input may become pretty long. Use CharsequenceUtilities.endsWith(x,y);
Thank you Marek for your valuable advice. Implemented in http://hg.netbeans.org/main/contrib/rev/e1387a5d34c8. claudsan could you try it again in next dev build? BTW you have to install update to newer Smarty plugin version - 1.38. Please let us know if it helped, thanks...
*** Bug 195279 has been marked as a duplicate of this bug. ***
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/324e309fbee9 User: Martin Fousek <marfous@netbeans.org> Log: #194222 - CharSequence.toString.endsWith replaced by CharSequenceUtilities.endsWith