From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 03 02:47:09 2022 Received: (at submit) by debbugs.gnu.org; 3 Nov 2022 06:47:09 +0000 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 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 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 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 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) MIME-Version: 1.0 References: In-Reply-To: From: =?UTF-8?Q?Johann_H=C3=B6chtl?= Date: Wed, 2 Nov 2022 17:48:24 +0100 Message-ID: Subject: Re: treesitter-regression with json-mode To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary="0000000000009b8c1305ec7f9c51" 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-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 (--) --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-- From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 03 06:50:46 2022 Received: (at 58981) by debbugs.gnu.org; 3 Nov 2022 10:50:46 +0000 Received: from localhost ([127.0.0.1]:48151 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oqXo6-0003RH-Hq for submit@debbugs.gnu.org; Thu, 03 Nov 2022 06:50:46 -0400 Received: from mail-wm1-f46.google.com ([209.85.128.46]:34473) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oqXo2-0003Qm-3v; Thu, 03 Nov 2022 06:50:43 -0400 Received: by mail-wm1-f46.google.com with SMTP id n39-20020a05600c3ba700b003cf71011cddso3435027wms.1; Thu, 03 Nov 2022 03:50:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=3UQw1fW2D/poaI1YbvrpYND07ARFT/QRI38MAVQuBq4=; b=Ve8hausB84IQyvBpPeXJnMY10iDFmdn2RIoranc23u9EteOQ7/gisjxgPTSyMm5x7N ONOlSa1biXqqI2y4NFGJQB5z/+HBtZ9nYB6sI48Khda1QxhSablTGeh2nqPb3z4qJ4oW tRy7XZMhZV6nSu69tcKs2PNlzXmoiQ1Od71Pex4daFHmKd1ce3YwIEaQalrFTGNdiBYo zjJZgR03sPGpknofmLg+onzciRyxSeWpawC5i5iK1pqSwdCU2F2p645vkwBQQCnZS2UK CusK+N1n4ub/sDzKgw4hj7/2UX/ELhkth0YUgAR7UgPrbXVTSapu4kx7p27P7DARyw5x McYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=3UQw1fW2D/poaI1YbvrpYND07ARFT/QRI38MAVQuBq4=; b=jRDKgOFYzfgWBrp9WZzvY65Jz/6QpQE7saz84HLEx6Qy5+XbPNPpX8SsLvD5PaEqFF lZaLD/JrYUEFy45KkGKB5LVU9RfxrrPjZJ6BseAtGgH/NJ2HgnaKvmqMIXzrezSgj3sk bfofjUWg9TMf2FAR4UOGSOQ5vtnr59YfMmLEtdYRQQq4B7ZRc09AILWxibcDu+0H75Iu JYcx1+c0Ryf/oIq+PBobmx9tRpwcvyAsYeXiDIli5O3o6gNiYQzTHktoh4NA0oEvcYlR Ui5epC35lPBtiZDKSGFcg/3U9CeFCqOa+JRwTmscLfEOdgZZiIyzxkw1IdR2Qp4NOOTd hEag== X-Gm-Message-State: ACrzQf3FylOUP0IWfwjomftybNRKTc6sCGxyYJeLUGSZXxy1H26O9R8E rC6IO73tytW7YFopjw7bDPat4rxGHBI= X-Google-Smtp-Source: AMsMyM6OT6DGigu4i5wU1JJF98Jk0njf3ekdtoV8HUoEJo17zIthSEGz+1OChlZaQ7OrrCY5QilFwA== X-Received: by 2002:a05:600c:746:b0:3cf:705c:d8d9 with SMTP id j6-20020a05600c074600b003cf705cd8d9mr14787570wmn.42.1667472635682; Thu, 03 Nov 2022 03:50:35 -0700 (PDT) Received: from rltb ([82.66.8.55]) by smtp.gmail.com with ESMTPSA id w8-20020adfd4c8000000b0023672104c24sm522816wrk.74.2022.11.03.03.50.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Nov 2022 03:50:34 -0700 (PDT) From: Robert Pluim To: Johann =?utf-8?Q?H=C3=B6chtl?= Subject: Re: bug#58981: treesitter-regression with json-mode In-Reply-To: ("Johann =?utf-8?Q?H=C3=B6chtl=22's?= message of "Wed, 2 Nov 2022 17:48:24 +0100") References: Date: Thu, 03 Nov 2022 11:50:34 +0100 Message-ID: <87wn8cl3b9.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 58981 Cc: 58981@debbugs.gnu.org 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 58981 notabug close 58981 29.1 quit >>>>> On Wed, 2 Nov 2022 17:48:24 +0100, Johann H=C3=B6chtl said: Johann> Sorry, disregard, behavior is caused by plugin highlight-indent= -guides Closing, thanks. Robert From unknown Sat Aug 16 21:15:48 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 01 Dec 2022 12:24:08 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator