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 239531 - Javascript lexer may be slow
Summary: Javascript lexer may be slow
Status: RESOLVED DUPLICATE of bug 244968
Alias: None
Product: javascript
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Roman Svitanic
URL:
Keywords: PERFORMANCE
Depends on:
Blocks: 237064
  Show dependency tree
 
Reported: 2013-12-16 15:28 UTC by Exceptions Reporter
Modified: 2015-06-15 12:28 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 206053


Attachments
nps snapshot (856.84 KB, application/nps)
2013-12-16 15:28 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2013-12-16 15:28:19 UTC
This issue was reported manually by sdedic.
It already has 2 duplicates 


Build: NetBeans IDE 7.4 (Build 201310111528)
VM: OpenJDK 64-Bit Server VM, 23.7-b01, OpenJDK Runtime Environment, 1.7.0_25-b30
OS: Linux

User Comments:
gtzabari: Saved a Javascript file, which triggered code-format on the modified lined.

GUEST: I was trying to parse a large JSON file. It stuck the UI for very long. Maybe should be transferred out of the UI thread (my best guess).



Maximum slowness yet reported was 91790 ms, average is 70663
Comment 1 Exceptions Reporter 2013-12-16 15:28:28 UTC
Created attachment 143222 [details]
nps snapshot
Comment 2 Svata Dedic 2013-12-16 15:29:59 UTC
Please evaluate the snapshots, the javascript lexer seems to cause some slowdown during reformatting.
Comment 3 Petr Pisl 2015-06-11 07:21:41 UTC
Involved reformating -> assigning to Roman
Comment 4 Roman Svitanic 2015-06-11 13:16:34 UTC
This issue hasn't occurred since 7.4 and also it seems that the issue in the exception reports was slow filesystem:

java.io.UnixFileSystem.getLastModifiedTime[native]()

I am closing this issue for now, please reopen with mode details if you can reproduce it in the current dev builds. Thanks!
Comment 5 Tomas Hurka 2015-06-15 12:28:20 UTC

*** This bug has been marked as a duplicate of bug 244968 ***