From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#69071: Emacs master branch: c-ts-mode is slow with large C functions. Date: Tue, 20 Feb 2024 15:55:53 +0200 Message-ID: <86ttm3nst2.fsf@gnu.org> References: <86le7mw2dg.fsf@gnu.org> <7178B3F3-CCD7-4A2B-9F29-DFF78A6BA243@gmail.com> <0C0D2B19-C026-4719-97C0-7F450F12D92A@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16938"; mail-complaints-to="usenet@ciao.gmane.io" Cc: acm@muc.de, 69071@debbugs.gnu.org To: Yuan Fu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Feb 20 14:56:55 2024 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 1rcQcA-0004Bv-Ej for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 20 Feb 2024 14:56:54 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rcQbz-0004RA-Ti; Tue, 20 Feb 2024 08:56:44 -0500 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 1rcQbx-0004QY-4O for bug-gnu-emacs@gnu.org; Tue, 20 Feb 2024 08:56:41 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rcQbw-0007HY-Rz for bug-gnu-emacs@gnu.org; Tue, 20 Feb 2024 08:56:40 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rcQcI-0001c9-Hf for bug-gnu-emacs@gnu.org; Tue, 20 Feb 2024 08:57:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 20 Feb 2024 13:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69071 X-GNU-PR-Package: emacs Original-Received: via spool by 69071-submit@debbugs.gnu.org id=B69071.17084373886168 (code B ref 69071); Tue, 20 Feb 2024 13:57:02 +0000 Original-Received: (at 69071) by debbugs.gnu.org; 20 Feb 2024 13:56:28 +0000 Original-Received: from localhost ([127.0.0.1]:44604 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rcQbk-0001bP-0X for submit@debbugs.gnu.org; Tue, 20 Feb 2024 08:56:28 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:57284) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rcQbh-0001b9-MG for 69071@debbugs.gnu.org; Tue, 20 Feb 2024 08:56:26 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rcQbE-0007Bw-KG; Tue, 20 Feb 2024 08:55:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=w2SVEUcXS9cl9oSdAMdc4ZndN/CSMcWNS91Ol41Qlb8=; b=e6soKBgmgAOR RnJaXFnZ4iUw5mtHE9uPl6zum82rWm+h/99de4CzKkCedM82zYkdWz+4wS12lhSZLLQXNrdcp/YBK vUOFud3s8GD8kGZfCEP32YP/2PfbC3aCtJD1b46aRYZt0fDdRaK4lM1c/+tBdm1cajjOQXfwVLOjS hqE7aTmz3AKhjF2IyVF/IiBpL/LCoUEsiKgk7C3eWP3XizCCBi+ZjWDSOdVEJQnFa8KWaorBHcEfg 8e0rNw1nENiGnYIJndz8c9h4YwFp+9cfAJKH8mfPeIRImmUJpbeUEWH9qr1w82kQbhqgRJwbgKVNb /bXCfzHnGZ5CCNzdxQBmEQ==; In-Reply-To: <0C0D2B19-C026-4719-97C0-7F450F12D92A@gmail.com> (message from Yuan Fu on Mon, 19 Feb 2024 21:49:26 -0800) 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:280324 Archived-At: > From: Yuan Fu > Date: Mon, 19 Feb 2024 21:49:26 -0800 > Cc: Alan Mackenzie , > 69071@debbugs.gnu.org > > Before we continue, let me note that this seems like another case where tree-sitter-c parser chokes on some extreme C code. Profiler reports shows that almost all time are spent in treesit-parser-root-node, which indicates that all the time are spent parsing the text. So maybe this is something to report to tree-sitter and/or tree-sitter-c developers? (Does c++-ts-mode behave better with this file?)