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#58981: treesitter-regression with json-mode Date: Wed, 2 Nov 2022 17:48:24 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000009b8c1305ec7f9c51" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7668"; mail-complaints-to="usenet@ciao.gmane.io" To: 58981@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Nov 03 07:48:17 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 1oqU1R-0001oD-7s for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 03 Nov 2022 07:48:17 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oqU1L-0004B6-1g; Thu, 03 Nov 2022 02:48:11 -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-00048d-9t 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 1oqU1E-0003Lp-Gr 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 1oqU1E-0004Kx-Dg for bug-gnu-emacs@gnu.org; Thu, 03 Nov 2022 02:48:04 -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:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 58981 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.166745802916436 (code B ref -1); Thu, 03 Nov 2022 06:48:04 +0000 Original-Received: (at submit) by debbugs.gnu.org; 3 Nov 2022 06:47:09 +0000 Original-Received: from localhost ([127.0.0.1]:47652 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oqU0L-0004Gv-2x for submit@debbugs.gnu.org; Thu, 03 Nov 2022 02:47:09 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:49022) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oqGut-0003hR-Ha for submit@debbugs.gnu.org; Wed, 02 Nov 2022 12:48:39 -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 1oqGut-0007jN-AY for bug-gnu-emacs@gnu.org; Wed, 02 Nov 2022 12:48:39 -0400 Original-Received: from mail-oi1-x230.google.com ([2607:f8b0:4864:20::230]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oqGur-0005PE-LB for bug-gnu-emacs@gnu.org; Wed, 02 Nov 2022 12:48:39 -0400 Original-Received: by mail-oi1-x230.google.com with SMTP id b124so7283541oia.4 for ; Wed, 02 Nov 2022 09:48:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=2Ew5wH+KaEJNL59o8y+ppS/ANVS/U+jqF+emsTIS+K0=; b=JioysodXlcDXz55OWKeH1LZSEAjZwqpPc3kZwZF/oo3sI0yEyWT3HTjV1PzIKwamd6 7dQ9r/3yuPeHQP3dWvD04GMgwRxTlJXC9AkCxkuLGNM/GDBbN183jJziDammIzYLw8wy u+FGmfgctcAAfs6IWR6ALGBOAqIauNgX+vxYPK/qW7ehjsjF0V7CHt16SQZgFuwg3Yqw JK1TxnGrhC16ccKzFNqRrt3zNL7v+I6KbaDTE8pnBcqkLkiAm8ZVK2qWyaQIllXk+BZ2 NZ6eJNVlOWytV1CvnmpwQt1ySdpoogh2ZN8SkBaNxj9nMEoZnX36Iuftb4y2fD8XoiXM kjlg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=2Ew5wH+KaEJNL59o8y+ppS/ANVS/U+jqF+emsTIS+K0=; b=u7IEkVTh+Ga0aPFwojovKpj+z2bpQvv9fRWVHKpDMpqNTAFWpxkLKlKrJRjXbOk3MK 5Lf81J4fzjPjLFe9ikCafFGc0I8JhK0PB4TNvNfR8cHDhp79M3nXKfWwlBRYJ4siG855 bbYBmc2prnY8ox9KBBcYbG850fgPJSAYStWpaoAXDS40Kd0ouxD6sgxBhZuG+3fjBC/b XpNPqn350SIET16MGRPW+6Wk2pty4xKTfUK1AQfc7kdbfhLI9I6GQ0FzlGJbhgnoeR97 2Jw7i68PCxUHo1FG6i60nSuKnLYwMBVgmrMwZdkQ2k1g3Lh1zzdVZZ4gPsREg3InFTKo 411Q== X-Gm-Message-State: ACrzQf1803Uc2++IQCvoaBdbdk0Is9Zpe+tBprg9EiL6QtTDMsZ/nNy3 uCotADxUDVUFgdjnfS3yTnkChiVpsXYLuoADL7aTtcPTZw== X-Google-Smtp-Source: AMsMyM6lcHuxsSqfj4K7h7AG11XCuL8qCWBaeCgvhzDJ4yNDoq++5c8F6J3q79HKfKFx04fKiIbN4r4o+znSawqBBp4= X-Received: by 2002:a05:6808:28d:b0:359:faab:c044 with SMTP id z13-20020a056808028d00b00359faabc044mr11154490oic.24.1667407715993; Wed, 02 Nov 2022 09:48:35 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::230; envelope-from=johann.hoechtl@gmail.com; helo=mail-oi1-x230.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:246917 Archived-At: --0000000000009b8c1305ec7f9c51 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sorry, disregard, behavior is caused by plugin highlight-indent-guides Am Mi., 2. Nov. 2022 um 17:16 Uhr schrieb Johann H=C3=B6chtl < johann.hoechtl@gmail.com>: > 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 mo= re. > > I consider this an unfortunately regression as recent commits to Emacs 29 > (long lines patches) actually makes working with such large files with lo= ng > lines absolutely pleasant, yet as it seems the interaction with tree-sitt= er > destroys this gains. > --0000000000009b8c1305ec7f9c51 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Sorry, disregard, behavior is caused by plugin=C2=A0highli= ght-indent-guides

Am Mi., 2. Nov. 2022 um 17:16=C2=A0Uhr schrieb Johann H=C3= =B6chtl <johann.hoechtl@gmai= l.com>:
<= 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-j= son-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 get= responsive any more.

I consider this an unfortuna= tely=C2=A0regression as recent commits to Emacs 29 (long lines patches) act= ually=C2=A0makes working with such large files with long lines absolutely p= leasant, yet as it seems the interaction with tree-sitter destroys this gai= ns.
--0000000000009b8c1305ec7f9c51--