From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Johann =?UTF-8?Q?H=C3=B6chtl?= Newsgroups: gmane.emacs.bugs Subject: bug#58979: treesitter-regression with json-mode Date: Wed, 2 Nov 2022 17:16:08 +0100 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000002e116b05ec7f2984" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11408"; mail-complaints-to="usenet@ciao.gmane.io" To: 58979@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Nov 03 07:49:01 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oqU29-0002oZ-2g for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 03 Nov 2022 07:49:01 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oqU1M-0004Bq-IZ; Thu, 03 Nov 2022 02:48:12 -0400 Original-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 1oqU1G-00048Z-1y for bug-gnu-emacs@gnu.org; Thu, 03 Nov 2022 02:48:06 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oqU1D-0003L6-A7 for bug-gnu-emacs@gnu.org; Thu, 03 Nov 2022 02:48:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oqU1D-0004KN-4v for bug-gnu-emacs@gnu.org; Thu, 03 Nov 2022 02:48:03 -0400 X-Loop: help-debbugs@gnu.org 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-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.166745802716420 (code B ref -1); Thu, 03 Nov 2022 06:48:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 3 Nov 2022 06:47:07 +0000 Original-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 Original-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 Original-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 Original-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 Original-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) 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-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 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: "bug-gnu-emacs" Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:246923 Archived-At: --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--