unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#58979: treesitter-regression with json-mode
@ 2022-11-02 16:16 Johann Höchtl
  2022-11-02 16:48 ` bug#58981: " Johann Höchtl
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Johann Höchtl @ 2022-11-02 16:16 UTC (permalink / raw)
  To: 58979

[-- 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 --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-01-07 23:10 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2023-01-07 23:10 ` Yuan Fu

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).