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: Sun, 25 Feb 2024 07:48:00 +0200 Message-ID: <86jzmtxffz.fsf@gnu.org> References: <86le7mw2dg.fsf@gnu.org> <7178B3F3-CCD7-4A2B-9F29-DFF78A6BA243@gmail.com> <0C0D2B19-C026-4719-97C0-7F450F12D92A@gmail.com> <86ttm3nst2.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24941"; 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 Sun Feb 25 06:55:59 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 1re7UU-0006FF-Rj for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 25 Feb 2024 06:55:58 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1re7UH-0001MA-7M; Sun, 25 Feb 2024 00:55:45 -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 1re7UA-0001Kh-7a for bug-gnu-emacs@gnu.org; Sun, 25 Feb 2024 00:55:40 -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 1re7U9-0000wh-GV for bug-gnu-emacs@gnu.org; Sun, 25 Feb 2024 00:55:37 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1re7UX-00017P-T0 for bug-gnu-emacs@gnu.org; Sun, 25 Feb 2024 00:56:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 25 Feb 2024 05:56:01 +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.17088405254199 (code B ref 69071); Sun, 25 Feb 2024 05:56:01 +0000 Original-Received: (at 69071) by debbugs.gnu.org; 25 Feb 2024 05:55:25 +0000 Original-Received: from localhost ([127.0.0.1]:43115 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1re7Tw-00015b-In for submit@debbugs.gnu.org; Sun, 25 Feb 2024 00:55:25 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:59550) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1re7NJ-0000gD-FB for 69071@debbugs.gnu.org; Sun, 25 Feb 2024 00:48:34 -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 1re7Mp-0007lU-HM; Sun, 25 Feb 2024 00:48:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=sS4eGZRrJuNUse6zsa+lRRUpCnqY7JEVHDKfdTH4lNI=; b=HkwaXSG+IOgtu7ATsSLd 5cwgRb6DUoJKExOoy2BFh6Gu1+ck8YEQhAhU+bXQcMIhWvGR4vi4Wk4c2fPYRRbD/nWQLwPvoXOSH 72uMnaCN6CLkdlEC57V3h9H1YVixjinBhxYdPbvHguWPSrJmJoQ9bBbmL0CaFjHHduwFB3jEZ/ddc 0kCduNkcvEL4QVT0c+kAnoXYEzBqp7EftCebKLBK5n0U6WclywmwjEI1FUOg71SJ90D0+BcyavQVf 2oIlk/s4gI1xbuXv+R0/uoUe5x5oDK8uQz8ZgFM6NFXiaNuwz+8runOSeWvU1mCnz4hZH3gpsd6Rd 1ApWZRmNOoFsbA==; In-Reply-To: (message from Yuan Fu on Sat, 24 Feb 2024 12:35:50 -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:280589 Archived-At: > From: Yuan Fu > Date: Sat, 24 Feb 2024 12:35:50 -0800 > Cc: acm@muc.de, > 69071@debbugs.gnu.org > > > > > On Feb 20, 2024, at 5:55 AM, Eli Zaretskii wrote: > > > >> 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?) > > We could, but honestly I don’t think they can/want to do anything. I suggest to report this anyway: we don't have anything to lose, and there's a chance they would like to do something. Thanks.