From: "Johann Höchtl" <johann.hoechtl@gmail.com>
To: 58979@debbugs.gnu.org
Subject: bug#58979: treesitter-regression with json-mode
Date: Wed, 2 Nov 2022 17:16:08 +0100 [thread overview]
Message-ID: <CAH4isRwm+hp02iLiGPNoH+y61RCrpt7YtbCnAbUO2_9Cr95nOA@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 662 bytes --]
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.
[-- Attachment #2: Type: text/html, Size: 750 bytes --]
next reply other threads:[~2022-11-02 16:16 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-02 16:16 Johann Höchtl [this message]
2022-11-02 16:48 ` bug#58981: treesitter-regression with json-mode 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
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAH4isRwm+hp02iLiGPNoH+y61RCrpt7YtbCnAbUO2_9Cr95nOA@mail.gmail.com \
--to=johann.hoechtl@gmail.com \
--cc=58979@debbugs.gnu.org \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.