GNU bug report logs - #58979
treesitter-regression with json-mode

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Johann Höchtl <johann.hoechtl@HIDDEN>; Keywords: moreinfo; dated Thu, 3 Nov 2022 06:48:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Added tag(s) moreinfo. Request was from Stefan Kangas <stefankangas@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 58979 <at> debbugs.gnu.org:


Received: (at 58979) by debbugs.gnu.org; 22 Nov 2022 07:44:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Nov 22 02:44:24 2022
Received: from localhost ([127.0.0.1]:49586 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oxNx6-00084T-0S
	for submit <at> debbugs.gnu.org; Tue, 22 Nov 2022 02:44:24 -0500
Received: from mail-pj1-f42.google.com ([209.85.216.42]:38552)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <casouri@HIDDEN>) id 1oxNx4-00084G-GJ
 for 58979 <at> debbugs.gnu.org; Tue, 22 Nov 2022 02:44:18 -0500
Received: by mail-pj1-f42.google.com with SMTP id
 l22-20020a17090a3f1600b00212fbbcfb78so16521148pjc.3
 for <58979 <at> debbugs.gnu.org>; Mon, 21 Nov 2022 23:44:18 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=to:cc:date:message-id:subject:mime-version
 :content-transfer-encoding:from:from:to:cc:subject:date:message-id
 :reply-to; bh=mFXf+kWXKAlMPM93BfqS1wVPL6ll96Mn1lD7RcIr+Mc=;
 b=qkUbbBxcXZIPGr9CjzbJCc7Mwiyxq/bpDUYLR6kfQ0PglaG7WMwoyKPV1yOe2DyGY5
 i4+BW2SYcgRce4DbuQSIll3C5W6rYwhXJ5HebHJlSq5rS0RBkN6uVQLUO0rF96QmK27n
 /14KpmORAtbouDSQ/2z+ez5O9mDKnyloTjGbWa3s01cmWPoxx4beD2Yj0UK7CAPvIwnn
 7yN070+PRv3jd5q46XSc0TskaCreEF3pEJUalefYLy6xI36ntX+FaIR0YD2Bp3+CYS/t
 1EeTMwLwFeFLd3og/yunXSG3vocb8VfXborhqE7IlS/KY8VJOyejrQst8PTjcTVhSXkv
 z5uA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=to:cc:date:message-id:subject:mime-version
 :content-transfer-encoding:from:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to;
 bh=mFXf+kWXKAlMPM93BfqS1wVPL6ll96Mn1lD7RcIr+Mc=;
 b=i2lHVD/G559UMGIgFPvccnpcMohg+IZiGgu7oviNgYFPZ8HERU1xAXuJrsFf0rkeUi
 0neNXfKY5DkQIOTxe7J9w8CWGt9zWQSlOEd8ZqSodIwKOVLcmqOZKk4sUJrpQVUSHyr0
 w4xleA2eHolP9dhLDtsZzcW1zkWzz7liNzFsT7JCu86l+Q+mQSwPhHvjir0C01d65PTC
 BtCZjRvBC2wRVfP+tQdATyrouC96ku6hn+XK/BnYVWqtzaRIsEAlplbO9thUP7cLy4aV
 QX93a011bFh1C3gfOzj3e2DJNaj1UI6GGHyG9OUbBzmG/vEQTDZWuMEXViTGN5CKYDdS
 qt1w==
X-Gm-Message-State: ANoB5pnd1RSmRo8qcorDZppo9diptEEVU6jBFI11ME9hDwDDEhSI1jXb
 w8VaZA/QzurGBfavkyu3eBaRjS1Pb7rrag==
X-Google-Smtp-Source: AA0mqf4E/3xRjfdJuo5Cj+9hvZy+tKIoPQo0KVb+A50C1smh5oj1VMpfxoCSImgjfiQ70mbQK5+nGQ==
X-Received: by 2002:a17:90a:4886:b0:211:42a9:d132 with SMTP id
 b6-20020a17090a488600b0021142a9d132mr24732750pjh.8.1669103051658; 
 Mon, 21 Nov 2022 23:44:11 -0800 (PST)
Received: from smtpclient.apple (cpe-172-117-161-177.socal.res.rr.com.
 [172.117.161.177]) by smtp.gmail.com with ESMTPSA id
 u10-20020a170902e5ca00b00189371b5971sm427306plf.220.2022.11.21.23.44.10
 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);
 Mon, 21 Nov 2022 23:44:11 -0800 (PST)
From: Yuan Fu <casouri@HIDDEN>
Content-Type: text/plain;
	charset=utf-8
Content-Transfer-Encoding: quoted-printable
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\))
Subject: Re: bug#58979: treesitter-regression with json-mode
Message-Id: <B3B7F7FB-9E79-4234-B997-CF44C01DF3C0@HIDDEN>
Date: Mon, 21 Nov 2022 23:44:10 -0800
To: Stefan Kangas <stefankangas@HIDDEN>
X-Mailer: Apple Mail (2.3696.120.41.1.1)
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 58979
Cc: johann.hoechtl@HIDDEN, 58979 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)


Stefan Kangas <stefankangas@HIDDEN> writes:

> Johann H=C3=B6chtl <johann.hoechtl@HIDDEN> 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=E2=80=99d give that a try and see if works fine.

Thanks,
Yuan




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#58979; Package emacs. Full text available.

Message received at 58979 <at> debbugs.gnu.org:


Received: (at 58979) by debbugs.gnu.org; 12 Nov 2022 20:34:11 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Nov 12 15:34:11 2022
Received: from localhost ([127.0.0.1]:49148 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1otxCc-0004lb-Qt
	for submit <at> debbugs.gnu.org; Sat, 12 Nov 2022 15:34:11 -0500
Received: from mail-oa1-f53.google.com ([209.85.160.53]:39764)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <stefankangas@HIDDEN>) id 1otxCb-0004kc-4l
 for 58979 <at> debbugs.gnu.org; Sat, 12 Nov 2022 15:34:09 -0500
Received: by mail-oa1-f53.google.com with SMTP id
 586e51a60fabf-13c569e5ff5so8804361fac.6
 for <58979 <at> debbugs.gnu.org>; Sat, 12 Nov 2022 12:34:09 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=content-transfer-encoding:cc:to:subject:message-id:date
 :mime-version:references:in-reply-to:from:from:to:cc:subject:date
 :message-id:reply-to;
 bh=LC/RIBUtNqIKErQPnPRVncJgxg75RONl1SmMzElLvcc=;
 b=F9j61+Ya1LLCsmcm3U/vjZK6s/9dgpUz8xfY4BaIHQxfeoHmo3HFeB5JyIsbfrYzhf
 vWjvQHpAVsG7BKXl+q5fC4UWp3rS5gfiFv+dC+zPsordrpPzjEAoqvUyPCvKt3P/pbOP
 b92980gq8aNjjAfBNzo3I4pRC1bczgXeKnqyQT7SW4QxIayqUsAMT0Yjm7iWphrDMXSq
 OVpcD0u5FsWgf/N7FxB/i7R9/2RjLL9Cf8OPfHIJeMr+wYQmhYmis6ejR8IZ+S56S//j
 /lCRPdos2iMOG4VmGxOJ0BbZY9rNVmmWRl47ZMGQS/LpMbJb2d0dIdH9eddMfvkP/Plu
 t+Kw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=content-transfer-encoding:cc:to:subject:message-id:date
 :mime-version:references:in-reply-to:from:x-gm-message-state:from:to
 :cc:subject:date:message-id:reply-to;
 bh=LC/RIBUtNqIKErQPnPRVncJgxg75RONl1SmMzElLvcc=;
 b=kpp3W6qAjGfeUBPJsnd68oIWfpp/WodndQqK/nA2GEZaU8WTSZnlCd9o3ahNc/2TY4
 m480RgFm3JTPKLiJ5E4Rt1OH3hrsp6eSQLmYy7/zg+mO1igP+HQrdEceGVW2iFZM9jPk
 lKHYlXA+1Zbk2jEnWVIu8C9DxJQRDKX2XqacfhNKsitcB7Gr1cp85SPsDL2XkQXQ2hIb
 KLvM7WGfvRlAg8y902TKc/rzs/SSTYBPO4Tj2WfWrwHLos0YmKbrQ452OLau6NNUVFy8
 dQ9qw1sL8qLKzKhYV3pFkeDGc0pg4FzAUvC33bAHBhGJHgjMk3I5rKOXlVEXaG0mhM+I
 QEJw==
X-Gm-Message-State: ANoB5pkpXHXRseZvacklAmeAV8fD+w0PwP3w8EpP1FtLdVySlHuf1xlL
 qIYSwbF016zY43GTol1oLxOn0Ptv/b/05uhBaMg=
X-Google-Smtp-Source: AA0mqf5y9d19W0Qe9YGkVxjeSDUb+Yb0R0UHBwyLbObK/QXIw+TRG42QF/xwf62MO9hKveOWDV3J0gLCWOXjH5FXAPs=
X-Received: by 2002:a05:6871:480a:b0:12b:fbe7:b793 with SMTP id
 qc10-20020a056871480a00b0012bfbe7b793mr3743591oab.92.1668285243727; Sat, 12
 Nov 2022 12:34:03 -0800 (PST)
Received: from 753933720722 named unknown by gmailapi.google.com with
 HTTPREST; Sat, 12 Nov 2022 12:34:03 -0800
From: Stefan Kangas <stefankangas@HIDDEN>
In-Reply-To: =?UTF-8?Q?=3CCAH4isRwm=2Bhp02iLiGPNoH=2By61RCrpt7YtbCnAbUO2=5F9Cr9?=
 =?UTF-8?Q?5nOA=40mail=2Egmail=2Ecom=3E_=28=22Johann_H=C3=B6chtl=22=27s_message_of_=22Wed=2C_2_?=
 =?UTF-8?Q?Nov_2022_17=3A16=3A08_=2B0100=22=29?=
References: <CAH4isRwm+hp02iLiGPNoH+y61RCrpt7YtbCnAbUO2_9Cr95nOA@HIDDEN>
X-Hashcash: 1:20:221112:casouri@HIDDEN::lz1X7gFCGuuqYs9v:7Wdg
MIME-Version: 1.0
Date: Sat, 12 Nov 2022 12:34:03 -0800
Message-ID: <CADwFkmmv+_kiuwr3+ws6EDMe1DZco-AAfi8RAQLm0EXZnWpnYA@HIDDEN>
Subject: Re: bug#58979: treesitter-regression with json-mode
To: =?UTF-8?Q?Johann_H=C3=B6chtl?= <johann.hoechtl@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 58979
Cc: Yuan Fu <casouri@HIDDEN>, 58979 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Johann H=C3=B6chtl <johann.hoechtl@HIDDEN> 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.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#58979; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 3 Nov 2022 06:47:07 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Nov 03 02:47:07 2022
Received: from localhost ([127.0.0.1]:47648 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oqU0J-0004Gk-F9
	for submit <at> debbugs.gnu.org; Thu, 03 Nov 2022 02:47:07 -0400
Received: from lists.gnu.org ([209.51.188.17]:50812)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <johann.hoechtl@HIDDEN>) id 1oqGPe-0002r8-Uu
 for submit <at> debbugs.gnu.org; Wed, 02 Nov 2022 12:16:35 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <johann.hoechtl@HIDDEN>)
 id 1oqGPe-0005K2-Lg
 for bug-gnu-emacs@HIDDEN; Wed, 02 Nov 2022 12:16:22 -0400
Received: from mail-ot1-x32c.google.com ([2607:f8b0:4864:20::32c])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <johann.hoechtl@HIDDEN>)
 id 1oqGPd-0006VV-4g
 for bug-gnu-emacs@HIDDEN; Wed, 02 Nov 2022 12:16:22 -0400
Received: by mail-ot1-x32c.google.com with SMTP id
 a13-20020a9d6e8d000000b00668d65fc44fso10539418otr.9
 for <bug-gnu-emacs@HIDDEN>; Wed, 02 Nov 2022 09:16:20 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=to:subject:message-id:date:from:mime-version:from:to:cc:subject
 :date:message-id:reply-to;
 bh=zMYiyatNnDuFxuc9dt+Z7OTly342QPiWDzvUrctnrUg=;
 b=ankJ6SLZf6oboFi4S8ecF30GDmTy0xnBSlW2iQjPB1RNToMyuIvj2hxhyDuOlW67Tf
 j4VQBO3Nwk3EVV6fhXCtzEJrzrHu5wc6YISCVtY9nfu6ZkGtq11JwAXst+8cpeO2hsw7
 ZN/bYoPBG04opoSriUPlUQzMU43lhQBENliIpr5M6X7sj9hr6GhveHSd6d0u9hdG+b3H
 2dsUEI1wV7/aSuS7xHaymRmpsQqQWbYxGJhDm5mcD9ugBelX6SRM/wZ9vl8BqviX/uXL
 kYPj1zsz3YljTm2XMMjH9qLCS4VmTBgQPYzbhvtxMOa2SWUzV6o0VVe9tzxNzZWBHs6b
 /X/A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=to:subject:message-id:date:from:mime-version:x-gm-message-state
 :from:to:cc:subject:date:message-id:reply-to;
 bh=zMYiyatNnDuFxuc9dt+Z7OTly342QPiWDzvUrctnrUg=;
 b=nMOD6QO7oiueVIWG921+aKG0WCRPm0t44482eP7Selgci7KCH4+K7NVe2ioA0W1FLf
 eMqn0wc511AqoViZqRASZuax12sds+mDQMi8XJyVx6EgVNxyuuDCL9VvqaDuRknbLw/P
 zlyl+p2vmJE5rSSL5GPr2YU/3N7wlt12mXhESerOJP/80U9WFv79WszoZYxbzWA32dwW
 nJi2+HX2F/ff/8FrSYv+kIFR35wUs3n2Ju14QVr9GggdmjEqS7No0t7DUdWulmAEqrFv
 UM4370mA4wcwmQnZEz0QhlGnEvg967UDXBx4b7KQntpMcEGTMXNnLqJhAtitQK0yb9oG
 lZxA==
X-Gm-Message-State: ACrzQf2GQNQDaB3bpKDwWQZacdpap7GeY9TbZr7XK8EXE0eZcE0mQvVb
 XJJ2SH51m0QSpjCGOXURpOWsZ3cmQTkYShNSCrYIcEB7Gg==
X-Google-Smtp-Source: AMsMyM7saYCEL6gQdZH4kTZbJRGWjTvp5kp77qtxf02bg67GUXsf51KRYj3yxKcFZFf5Ev49nCxB2RPt41ozLzIdcec=
X-Received: by 2002:a05:6830:6083:b0:660:d54e:583 with SMTP id
 by3-20020a056830608300b00660d54e0583mr12702375otb.282.1667405779438; Wed, 02
 Nov 2022 09:16:19 -0700 (PDT)
MIME-Version: 1.0
From: =?UTF-8?Q?Johann_H=C3=B6chtl?= <johann.hoechtl@HIDDEN>
Date: Wed, 2 Nov 2022 17:16:08 +0100
Message-ID: <CAH4isRwm+hp02iLiGPNoH+y61RCrpt7YtbCnAbUO2_9Cr95nOA@HIDDEN>
Subject: treesitter-regression with json-mode
To: bug-gnu-emacs@HIDDEN
Content-Type: multipart/alternative; boundary="0000000000002e116b05ec7f2984"
Received-SPF: pass client-ip=2607:f8b0:4864:20::32c;
 envelope-from=johann.hoechtl@HIDDEN; helo=mail-ot1-x32c.google.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Thu, 03 Nov 2022 02:47:05 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

--0000000000002e116b05ec7f2984
Content-Type: text/plain; charset="UTF-8"

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.

--0000000000002e116b05ec7f2984
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">When I open a large json=C2=A0file (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=C2=A0font locking, it works well.<di=
v><br></div><div>When I force this buffer into javascript-mode, Emacs hangs=
. Memory consumption as reported by Windows task manager &quot;dances&quot;=
 around 2Gb, yet even after waiting for three minutes, Emacs doesn&#39;t ge=
t responsive any more.</div><div><br></div><div>I consider this an unfortun=
ately=C2=A0regression as recent commits to Emacs 29 (long lines patches) ac=
tually=C2=A0makes working with such large files with long lines absolutely =
pleasant, yet as it seems the interaction with tree-sitter destroys this ga=
ins.</div></div>

--0000000000002e116b05ec7f2984--




Acknowledgement sent to Johann Höchtl <johann.hoechtl@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#58979; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Thu, 24 Nov 2022 19:45:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.