unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Kangas <stefankangas@gmail.com>
To: "Johann Höchtl" <johann.hoechtl@gmail.com>
Cc: Yuan Fu <casouri@gmail.com>, 58979@debbugs.gnu.org
Subject: bug#58979: treesitter-regression with json-mode
Date: Sat, 12 Nov 2022 12:34:03 -0800	[thread overview]
Message-ID: <CADwFkmmv+_kiuwr3+ws6EDMe1DZco-AAfi8RAQLm0EXZnWpnYA@mail.gmail.com> (raw)
In-Reply-To: <CAH4isRwm+hp02iLiGPNoH+y61RCrpt7YtbCnAbUO2_9Cr95nOA@mail.gmail.com> ("Johann Höchtl"'s message of "Wed, 2 Nov 2022 17:16:08 +0100")

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.





  parent reply	other threads:[~2022-11-12 20:34 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 ` Stefan Kangas [this message]
2022-11-22  7:44 ` bug#58979: " 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

  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=CADwFkmmv+_kiuwr3+ws6EDMe1DZco-AAfi8RAQLm0EXZnWpnYA@mail.gmail.com \
    --to=stefankangas@gmail.com \
    --cc=58979@debbugs.gnu.org \
    --cc=casouri@gmail.com \
    --cc=johann.hoechtl@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).