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.
This issue was reported manually by tpavek. It already has 2 duplicates Build: NetBeans IDE 6.9 RC2 (Build 201005312001) VM: Java HotSpot(TM) 64-Bit Server VM, 16.3-b01-279, Java(TM) SE Runtime Environment, 1.6.0_20-b02-279-10M3065 OS: Mac OS X User Comments: rharms: Editing a JSP in a freeform project. Almost impossible to use NB with this hang - even the slightest change to page causes a hang. Maximum slowness yet reported was 11361 ms, average is 11074
Created attachment 99900 [details] nps snapshot
Originally reported in bug 184893. I've found two similar slowness reports showing editor waiting long on JSP fold manager, and created separate bug. User 'rharms' marked the problem as 6.9 stopper in the community acceptance survey. Could be a good candidate for 6.9.1.
Created attachment 99933 [details] nps snapshot
I am seeing the same behavior(Beta2). It was also present in Beta1. I use a free form project.
The JspFoldManager uses the obsolete editor syntax classes. Upon each text tokenization (SyntaxSupport.getTokenChain()) a JspKit.createSyntax(Document d) is called. Creation of the JSP syntax requires creation of a JavaSyntax instance for a particular source level. The source level is obtained by JavaKit.jkit.getSourceLevel((BaseDocument)doc) which calls SourceLevelQuery.getSourceLevel() which is slow. Proper solution is not to use syntax, which may happen in 6.9.next. A simple fix is to cache the Syntax instances for JavaSyntax and HtmlSyntax.
fixed in web-main#dd9dd85d397f by weakly caching the JavaSyntax instance per Document.
Integrated into 'main-golden', will be available in build *201006110001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/dd9dd85d397f User: Marek Fukala <mfukala@netbeans.org> Log: #187337 - JSP editor hanging
This is NOT fixed in 6.9. Free-form project. JSP editor hangs for 2-3 seconds with every edit.
For now it's fixed in dev trunk. Considering for 6.9.1 update. velodiver, could you help us verify the fix in current dev builds? Thanks http://bits.netbeans.org/download/trunk/nightly/latest/
I've been using the 201006130001 daily build of NetBeans, and the JSP editor has not been hanging.
I was just helping Tomasz fixing "his" JSP issues, so I would prefer Tomasz to handle this. Thanks.
There is still a performance problem in JSPs in a free-form project. My previous fix fails here since the SourceLevelQuery.getSourceLevel() returns null so the cache is not used. fixed in web-main#9d534efabd15 I'm sorry for the complications. Thanks Martine for your effort in helping me reproducing the problem. Please verify in trunk so I can then transplant to 691
closing as fixed then
Verified in the trunk build. Please transplant into 691. Thanks Marku for the fix.
transplanted into release691 clone: http://hg.netbeans.org/release691/rev/5571a40f2733 http://hg.netbeans.org/release691/rev/afaa033f3420
Integrated into 'main-golden', will be available in build *201006240001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/9d534efabd15 User: Marek Fukala <mfukala@netbeans.org> Log: #187337/2 - JSP editor hanging
*** Bug 188467 has been marked as a duplicate of this bug. ***
*** Bug 188509 has been marked as a duplicate of this bug. ***