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 269395 - NetBeans slow when opening a middle sized JSON file
Summary: NetBeans slow when opening a middle sized JSON file
Status: NEW
Alias: None
Product: javascript
Classification: Unclassified
Component: JSON (show other bugs)
Version: 8.2
Hardware: PC Other
: P2 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-19 14:54 UTC by Christian Lenz
Modified: 2016-12-19 14:56 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
json-opening (163.18 KB, application/octet-stream)
2016-12-19 14:54 UTC, Christian Lenz
Details
json-scrolling (123.25 KB, application/octet-stream)
2016-12-19 14:55 UTC, Christian Lenz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Lenz 2016-12-19 14:54:39 UTC
Created attachment 163277 [details]
json-opening

This is a big problem for me, I have a JSON file for liquibase, this is a changelog file with the liquibase syntax to update the database. The file is round about 55kb big, has 110 lines and has a lot of insert objects inside of it. It tooks round about 5 seconds or so to open the file and to interact with it and to scroll. It hangs when I scroll for a few seconds.

I added snapshots for opening the JSON file (json-opening) and a snapshot for scrolling inside the JSON file (json-scrolling)

If the json file needed, I have to change the content inside of it.


Regards

Chris
Comment 1 Christian Lenz 2016-12-19 14:55:12 UTC
Created attachment 163278 [details]
json-scrolling
Comment 2 Christian Lenz 2016-12-19 14:56:29 UTC
The hot spots are:

com.sun.jna.Native.invokeInt[native]() ~30s
sun.font.SunLayoutEngine.nativeLayout[native]() ~ 18s