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

Summary: NetBeans slow when opening a middle sized JSON file
Product: javascript Reporter: Christian Lenz <chrizzly>
Component: JSONAssignee: Petr Pisl <ppisl>
Status: NEW ---    
Severity: normal    
Priority: P2    
Version: 8.2   
Hardware: PC   
OS: Other   
Issue Type: DEFECT Exception Reporter:
Attachments: json-opening
json-scrolling

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