New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Slow to open a JSON file containing 100,000 '[' characters #221
Comments
Thank you very much for reporting this. That is unfortunate 😞 This seems to be an issue with syntect, the (awesome) library that does the syntax highlighting for |
Also related: trishume/syntect#202 |
I just noticed something unusual relating to this. The If I do But if I do Background: The js file is 381975 bytes. I noticed this because I made an alias for |
@nloadholtes Thank you for reporting this! I don't think this is related to this ticket (but I can reproduce this). Could you please open a new one? |
I'm going to close this for now because there is nothing we can do here, but I'll keep an eye on the upstream ticket. |
I was doing some JSON-related work, using the examples at https://github.com/nst/JSONTestSuite. My code passes most of the test cases, but one that it failed on was n_structure_100000_opening_arrays.json — a file containing nothing but one hundred thousand open brackets.
I tried opening the file in
bat
to see what it was, and it gets as far as printing out the "File:" header, but after that, just takes up 100% CPU doing syntax highlighting! Running with-l text
displays the file instantly.(I had similar troubles opening this file in my text editor, so don't feel bad. GitHub straight up refuses to render the file, too.)
The text was updated successfully, but these errors were encountered: