From unknown Mon Aug 18 04:47:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#58979: treesitter-regression with json-mode Resent-From: Johann =?UTF-8?Q?H=C3=B6chtl?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 03 Nov 2022 06:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 58979 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 58979@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.166745802716420 (code B ref -1); Thu, 03 Nov 2022 06:48:02 +0000 Received: (at submit) by debbugs.gnu.org; 3 Nov 2022 06:47:07 +0000 Received: from localhost ([127.0.0.1]:47648 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oqU0J-0004Gk-F9 for submit@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 ) id 1oqGPe-0002r8-Uu for submit@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 ) id 1oqGPe-0005K2-Lg for bug-gnu-emacs@gnu.org; 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 ) id 1oqGPd-0006VV-4g for bug-gnu-emacs@gnu.org; Wed, 02 Nov 2022 12:16:22 -0400 Received: by mail-ot1-x32c.google.com with SMTP id a13-20020a9d6e8d000000b00668d65fc44fso10539418otr.9 for ; 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: Johann =?UTF-8?Q?H=C3=B6chtl?= Date: Wed, 2 Nov 2022 17:16:08 +0100 Message-ID: Content-Type: multipart/alternative; boundary="0000000000002e116b05ec7f2984" Received-SPF: pass client-ip=2607:f8b0:4864:20::32c; envelope-from=johann.hoechtl@gmail.com; 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-Mailman-Approved-At: Thu, 03 Nov 2022 02:47:05 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" 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
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.
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 ge= t responsive any more.

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.
--0000000000002e116b05ec7f2984-- From unknown Mon Aug 18 04:47:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#58979: treesitter-regression with json-mode Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 12 Nov 2022 20:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58979 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Johann =?UTF-8?Q?H=C3=B6chtl?= Cc: Yuan Fu , 58979@debbugs.gnu.org Received: via spool by 58979-submit@debbugs.gnu.org id=B58979.166828525118337 (code B ref 58979); Sat, 12 Nov 2022 20:35:02 +0000 Received: (at 58979) by debbugs.gnu.org; 12 Nov 2022 20:34:11 +0000 Received: from localhost ([127.0.0.1]:49148 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1otxCc-0004lb-Qt for submit@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 ) id 1otxCb-0004kc-4l for 58979@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@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 In-Reply-To: ("Johann =?UTF-8?Q?H=C3=B6chtl?="'s message of "Wed, 2 Nov 2022 17:16:08 +0100") References: X-Hashcash: 1:20:221112:casouri@gmail.com::lz1X7gFCGuuqYs9v:7Wdg MIME-Version: 1.0 Date: Sat, 12 Nov 2022 12:34:03 -0800 Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Johann H=C3=B6chtl 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. From unknown Mon Aug 18 04:47:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#58979: treesitter-regression with json-mode References: In-Reply-To: Resent-From: Yuan Fu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 22 Nov 2022 07:45:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58979 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Stefan Kangas Cc: johann.hoechtl@gmail.com, 58979@debbugs.gnu.org Received: via spool by 58979-submit@debbugs.gnu.org id=B58979.166910306431037 (code B ref 58979); Tue, 22 Nov 2022 07:45:01 +0000 Received: (at 58979) by debbugs.gnu.org; 22 Nov 2022 07:44:24 +0000 Received: from localhost ([127.0.0.1]:49586 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oxNx6-00084T-0S for submit@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 ) id 1oxNx4-00084G-GJ for 58979@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@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 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\)) Message-Id: Date: Mon, 21 Nov 2022 23:44:10 -0800 X-Mailer: Apple Mail (2.3696.120.41.1.1) X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Stefan Kangas writes: > Johann H=C3=B6chtl 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 From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 24 14:41:17 2022 Received: (at control) by debbugs.gnu.org; 24 Nov 2022 19:41:17 +0000 Received: from localhost ([127.0.0.1]:60300 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oyI60-00016X-QE for submit@debbugs.gnu.org; Thu, 24 Nov 2022 14:41:17 -0500 Received: from mail-ot1-f47.google.com ([209.85.210.47]:46937) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oyI5S-00013B-AX for control@debbugs.gnu.org; Thu, 24 Nov 2022 14:40:42 -0500 Received: by mail-ot1-f47.google.com with SMTP id m7-20020a9d6447000000b0066da0504b5eso1443308otl.13 for ; Thu, 24 Nov 2022 11:40:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:mime-version:from:from:to:cc:subject :date:message-id:reply-to; bh=ZnvPa3ih4zTfFeNHXZ37vqDgjFTjPfxs2L65i53328I=; b=JG2+LZixBfkwcSfsNHNPfm72b1zzI9rpcMFPb1AwZWPvp+e51wk0R8MkjV0wwcn3Hc 3Qya0FLcQ7miof7q8hF7x+j/2SqBan0mbxmenkF9IBY7PeYVptpBgLq354T4kpWyIFkF cYRSNV+DZxfSJgHNj1mZ31z0PSuKqvGhnUAI8FJOtIdgirdBD8BmhdfVE+2G/iu3OFE+ WR2k2pKaQEk+JtD6T+eSjBLtecHmhbnxDqWTKfswYgU7uSa4pzIeyK4ys82u3iusnSdn +dBA0BmfF2bfMQwjzj99pPNm4lzrwCbpoLSj0d5y9KLWzme+MVpI0E+y7PKHdYZ74VV3 Uwcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:mime-version:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=ZnvPa3ih4zTfFeNHXZ37vqDgjFTjPfxs2L65i53328I=; b=wKMq6ByawZRvnYlDckdCrRStD95PsiFBmcAlO29+MA2XW8bieq+Q/gXmCCxg10TbRE h+wJAaivf7ITHFyAWEGFqDaHys/l8IsEErfCrAYNkREYQnPFxFhaaM8KFerD+EmAD0pz ML4x9ACl98cA7oU4AeXN+e4gaD9RU7V3doa9SDhfXwbmKNE6FBzbKuBiX4/nMyfkzJhq 8KbP2ud90GzQ93KtvofHIDC9n0Zz0AD0QPxh52n1ISsk3H7flXZyyYKO5gGmZ73M4aWM Qloxx23SQgcZ2ubni37vVd/QWCmPWaLHFQOa6h9GYpw8WKHdTPsPVzaScqdxr4OYKgIh HDNQ== X-Gm-Message-State: ANoB5pkQlBT9f3NLY0t0n72ugATeVFnqXsrXPPm5KovHnJ+pbdkULo6J 1nzKj71VdMNc2UKydaLjTU9h0YjZokth0FtRkEtJDgPC X-Google-Smtp-Source: AA0mqf5QMXn36bI9cg58zKxVe4DaMkHUSjUsCHUDsSv2/cXMOsnDu1KwlIqUOJ9l8aUhajkMERR89q6eyMxp3lkW68M= X-Received: by 2002:a9d:5c81:0:b0:661:c48b:12db with SMTP id a1-20020a9d5c81000000b00661c48b12dbmr8669580oti.105.1669318836519; Thu, 24 Nov 2022 11:40:36 -0800 (PST) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Thu, 24 Nov 2022 11:40:36 -0800 From: Stefan Kangas X-Hashcash: 1:20:221124:control@debbugs.gnu.org::1zQboYX6CMRQ75sF:0TOL MIME-Version: 1.0 Date: Thu, 24 Nov 2022 11:40:36 -0800 Message-ID: Subject: control message for bug #58979 To: control@debbugs.gnu.org Content-Type: text/plain; charset="UTF-8" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 58979 + moreinfo quit From unknown Mon Aug 18 04:47:37 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Johann =?UTF-8?Q?H=C3=B6chtl?= Subject: bug#58979: closed (Re: bug#58979: treesitter-regression with json-mode) Message-ID: References: X-Gnu-PR-Message: they-closed 58979 X-Gnu-PR-Package: emacs X-Gnu-PR-Keywords: moreinfo Reply-To: 58979@debbugs.gnu.org Date: Sat, 07 Jan 2023 23:11:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1673133062-28287-1" This is a multi-part message in MIME format... ------------=_1673133062-28287-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #58979: treesitter-regression with json-mode which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 58979@debbugs.gnu.org. --=20 58979: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D58979 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1673133062-28287-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 58979-done) by debbugs.gnu.org; 7 Jan 2023 23:10:23 +0000 Received: from localhost ([127.0.0.1]:59201 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pEIKV-0007LI-GJ for submit@debbugs.gnu.org; Sat, 07 Jan 2023 18:10:23 -0500 Received: from mail-pf1-f171.google.com ([209.85.210.171]:34635) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pEIKT-0007L4-D7 for 58979-done@debbugs.gnu.org; Sat, 07 Jan 2023 18:10:21 -0500 Received: by mail-pf1-f171.google.com with SMTP id e21so3633428pfl.1 for <58979-done@debbugs.gnu.org>; Sat, 07 Jan 2023 15:10:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:date:message-id:subject:mime-version:content-transfer-encoding :from:from:to:cc:subject:date:message-id:reply-to; bh=tVgY7GUDdlGunJ2yiy4jhHJM/p5/5aoDrD27Z6BZDqA=; b=PvlVdlSg3rEPPamffGWDgFZsxikhRmGj965/hpw/geIK3+c8rlx4PcO8u5fL2ENPk7 ZFIsGejhE3GDdAlVq52BHdtANO0UqFvqRzr4zxGeNTL7lPDmx+i0gKmk64quANYYw/3F CVoEKQMk3MIzY48NtaEaxY+EQwsbBKVyfpKyz/Ptd7rjUkx4z3yfEhn3GggodtuZgzF4 PgeiNEDR2bPbYZccQhFPgr4OOCtr1Dqai3pUS8t9B3u7MaXev+7eC6EzAHr2ExuEz6yG 5fuGl5VnSwGjxaFRf2BMmbvEuMrSJKAI4nA2yaHwVE5eSpOuYGBbMiBbO6dAOAbfvQj7 J2wQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:date:message-id:subject:mime-version:content-transfer-encoding :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=tVgY7GUDdlGunJ2yiy4jhHJM/p5/5aoDrD27Z6BZDqA=; b=CRjgNDfIOYeZowRGjT5BAdyIofVhfmhEeqyRyvc+vDV7bcE1Fk7UiW0sJefFTprocm geBWZ0xHSjAuAjjM89JsKXYMkZXXLigoaRIJgnI/smxAnyemXE4Sk5VV7N8VWThCDIVx DRbYyMdRGn8WSap96mzOe6ui9EX5xXLZ5QGcVCtUdOqS0yL5WU/FjXFtOVGzc12tPK7P kdzc8NEb/OlenPETsDInl8FPCjYXx9BZsltS49pz+SFFRYZIda+CnH0lF4p4yyR9Qwyz 6hkmUXD7pHHOlEQJ5NHfxTiigJnAk57DksaCogTqE/6mL5ouD6v+uXX5v9ifC+Zcg00+ dF8g== X-Gm-Message-State: AFqh2kq36kMXiIkbpRRsVHwupufda42I2jrxpV1rwhNk1bg+7rwIVX6V YaLHAwwS5Z7ZmKETlqc4p5sxwSMcKjI= X-Google-Smtp-Source: AMrXdXuYjUO1Q8Tttrn71n61r9tTE7xcq1mTjS8HcRKa/pXyRWpK91fZiGkXcE+G8Ac8sTSc1yQXxQ== X-Received: by 2002:a62:ed18:0:b0:574:cc3d:a24e with SMTP id u24-20020a62ed18000000b00574cc3da24emr53935906pfh.5.1673133015567; Sat, 07 Jan 2023 15:10:15 -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 187-20020a6214c4000000b005828071bf7asm2006031pfu.22.2023.01.07.15.10.15 for <58979-done@debbugs.gnu.org> (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 07 Jan 2023 15:10:15 -0800 (PST) From: Yuan Fu 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: Date: Sat, 7 Jan 2023 15:10:14 -0800 To: 58979-done@debbugs.gnu.org X-Mailer: Apple Mail (2.3696.120.41.1.1) X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 58979-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Yuan Fu writes: > Stefan Kangas writes: > >> Johann H=C3=B6chtl 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 Closing this report since I think there=E2=80=99s nothing to do. Feel = free to reopen. Yuan ------------=_1673133062-28287-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 3 Nov 2022 06:47:07 +0000 Received: from localhost ([127.0.0.1]:47648 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oqU0J-0004Gk-F9 for submit@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 ) id 1oqGPe-0002r8-Uu for submit@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 ) id 1oqGPe-0005K2-Lg for bug-gnu-emacs@gnu.org; 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 ) id 1oqGPd-0006VV-4g for bug-gnu-emacs@gnu.org; Wed, 02 Nov 2022 12:16:22 -0400 Received: by mail-ot1-x32c.google.com with SMTP id a13-20020a9d6e8d000000b00668d65fc44fso10539418otr.9 for ; 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?= Date: Wed, 2 Nov 2022 17:16:08 +0100 Message-ID: Subject: treesitter-regression with json-mode To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary="0000000000002e116b05ec7f2984" Received-SPF: pass client-ip=2607:f8b0:4864:20::32c; envelope-from=johann.hoechtl@gmail.com; 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@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" 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
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.
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 ge= t responsive any more.

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.
--0000000000002e116b05ec7f2984-- ------------=_1673133062-28287-1--