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 bug was originally marked as duplicate of bug 183792, 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.1.1 (Build 201202271535) VM: Java HotSpot(TM) 64-Bit Server VM, 23.0-b19, Java(TM) SE Runtime Environment, 1.7.0_04-ea-b18 OS: Linux User Comments: dwuysan: Editing in .properties files and JSP files are really really slow. Maximum slowness yet reported was 54168 ms, average is 54168
Created attachment 117850 [details] nps snapshot
Created attachment 140161 [details] nps snapshot opening a jsp
*** Bug 209811 has been marked as a duplicate of this bug. ***
JspDataObject.getFileEncoding() can be really slow. Since 2005, there's an optimisation (o.n.m.web.jspparser.FastOpenInfoParser) which quickly determines the JSP file encoding without running the 'true' jsp parser. However under some circumstances this parser can't properly provide the encoding and then it fallbacks to the jsp parser. This however means the thread is blocked until the jsp parsing thread finishes its work, which may take very long time. Even in the case when the true jsp parser is used to obtain the file encoding, the call doesn't need to necessarily be very slow. In most cases, just the first jsp parser call is slow, subsequent calls are not that bad. I'm not sure if it is worth of the effort to address this problem so I won't attempt to fix it now, but keep it open so we can track it.