From: Yuan Fu <casouri@gmail.com>
To: Stefan Kangas <stefankangas@gmail.com>
Cc: johann.hoechtl@gmail.com, 58979@debbugs.gnu.org
Subject: bug#58979: treesitter-regression with json-mode
Date: Mon, 21 Nov 2022 23:44:10 -0800 [thread overview]
Message-ID: <B3B7F7FB-9E79-4234-B997-CF44C01DF3C0@gmail.com> (raw)
In-Reply-To: <CAH4isRwm+hp02iLiGPNoH+y61RCrpt7YtbCnAbUO2_9Cr95nOA@mail.gmail.com>
Stefan Kangas <stefankangas@gmail.com> writes:
> Johann Höchtl <johann.hoechtl@gmail.com> writes:
>
>> When I open a large json file (about 3_000_000 lines, about 72Mb,
>> pretty-printed) Emacs 29.0.50 opens the file just fine in
>> `js-json-mode` and when using regexp-based font locking, it works
>> well.
>>
>> When I force this buffer into javascript-mode, Emacs hangs. Memory
>> consumption as reported by Windows task manager "dances" around 2Gb,
>> yet even after waiting for three minutes, Emacs doesn't get responsive
>> any more.
>>
>> I consider this an unfortunately regression as recent commits to Emacs
>> 29 (long lines patches) actually makes working with such large files
>> with long lines absolutely pleasant, yet as it seems the interaction
>> with tree-sitter destroys this gains.
>
> Copying in Yuan Fu.
Again, sorry for the delay, I just saw this report :-)
Since your previous report is actually about emacs-tree-sitter, I think
this one is too?
Anyway, since tree-sitter is merged into master now, if you rebuild
master and turn on json-ts-mode, you should be in tree-sitter backed
JSON mode. I’d give that a try and see if works fine.
Thanks,
Yuan
next prev parent reply other threads:[~2022-11-22 7:44 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-02 16:16 bug#58979: treesitter-regression with json-mode Johann Höchtl
2022-11-02 16:48 ` bug#58981: " Johann Höchtl
2022-11-03 10:50 ` Robert Pluim
2022-11-12 20:34 ` bug#58979: " Stefan Kangas
2022-11-22 7:44 ` Yuan Fu [this message]
2023-01-07 23:10 ` Yuan Fu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=B3B7F7FB-9E79-4234-B997-CF44C01DF3C0@gmail.com \
--to=casouri@gmail.com \
--cc=58979@debbugs.gnu.org \
--cc=johann.hoechtl@gmail.com \
--cc=stefankangas@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).