From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuan Fu Newsgroups: gmane.emacs.bugs Subject: bug#69071: Emacs master branch: c-ts-mode is slow with large C functions. Date: Thu, 29 Feb 2024 17:26:50 -0800 Message-ID: <911EE9A2-091B-49A7-A994-638FACE97E0C@gmail.com> References: <86le7mw2dg.fsf@gnu.org> <7178B3F3-CCD7-4A2B-9F29-DFF78A6BA243@gmail.com> <0C0D2B19-C026-4719-97C0-7F450F12D92A@gmail.com> <86ttm3nst2.fsf@gnu.org> <86jzmtxffz.fsf@gnu.org> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.700.6\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35932"; mail-complaints-to="usenet@ciao.gmane.io" Cc: acm@muc.de, 69071@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Mar 01 02:28:53 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 1rfrhl-000975-GN for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 01 Mar 2024 02:28:53 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rfrhU-0004Dj-Eo; Thu, 29 Feb 2024 20:28:36 -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 1rfrhT-0004Da-Ik for bug-gnu-emacs@gnu.org; Thu, 29 Feb 2024 20:28:35 -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 1rfrhT-0001rA-Ae for bug-gnu-emacs@gnu.org; Thu, 29 Feb 2024 20:28:35 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rfrhu-0004Bj-8e for bug-gnu-emacs@gnu.org; Thu, 29 Feb 2024 20:29:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Yuan Fu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 01 Mar 2024 01:29: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.170925651916068 (code B ref 69071); Fri, 01 Mar 2024 01:29:02 +0000 Original-Received: (at 69071) by debbugs.gnu.org; 1 Mar 2024 01:28:39 +0000 Original-Received: from localhost ([127.0.0.1]:35750 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rfrhW-0004B6-PY for submit@debbugs.gnu.org; Thu, 29 Feb 2024 20:28:39 -0500 Original-Received: from mail-pl1-f173.google.com ([209.85.214.173]:46425) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rfrhT-0004Ar-Po for 69071@debbugs.gnu.org; Thu, 29 Feb 2024 20:28:37 -0500 Original-Received: by mail-pl1-f173.google.com with SMTP id d9443c01a7336-1dc96f64c10so15721415ad.1 for <69071@debbugs.gnu.org>; Thu, 29 Feb 2024 17:28:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709256422; x=1709861222; darn=debbugs.gnu.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=OIKEr16nIR8zWLUvBIAIYdKMoYP46YqxWrdavUucj4U=; b=dFatMMCSuQ3yizcR+m7s3liV0WV2MjsEJJGuNuOt6MZ1sLO9RV2H526cU9uvR/YYnU qjbNdiux2/tc2bdymnYfI4Xm9wKMLZXBhRC7TJ+e4MrN4mswUnfQ/NGU77+gu4KW8lcP uUCEwUWX9P2AhdE+jVjTSLleocKQsZj+76SS6mUrKxFwZRxKUttDvmKqxK8p4hG9TcFx 5eOlNZeoltf0WfWUaQHtPoEvwapwNakzn5PWsIZ1yVxZhLiBxHvTSNH3owJdsL5FiXHK m1Mw3s9NyjBjBg3T3H5ZJTHXCUFVS9ELh5uTeZGhjXNrjEm5xmNo5LaIU0lR/Y8onn23 8/qA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709256422; x=1709861222; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=OIKEr16nIR8zWLUvBIAIYdKMoYP46YqxWrdavUucj4U=; b=H67b1IDeLJ8cLvIOrCJFXSzKgqgf6utyPoeKZuKyRX8rOwYIf3IKb//eFns8Mu5qUD h9LUt2vtNKroqBWuiS3ZhUQHirnwZwhQXuLzsXZw8XZP2Ul4lAXSHdi98bZkO0FUuEMB GCqd4EQN7GZ+BR7jTlw8vm+XyWDFzrvDS/Xg6V7iev0vj6s0IgpTBH3MTK22XB7Vt317 hW+cde9HLw2F3FyQxYWYlHFj29Qvi5v5Xig3pCtwglIrcdZIbaA6xFkJ5Fd6N4W4+Uqi Kd9h20xuusvbEXVXDXXC21cJcm3cxe9U9H8kpIhDP4DHLz7oOJ1Kc4ERcCHRQ5Yfkc+u zg1Q== X-Forwarded-Encrypted: i=1; AJvYcCVHE6IbrMPKYVWLb1kiq23Uk8zojeLFIooTBLGpPLlzt963dE8Tw/p465oMb5Tl0hqwJF9IznoUl/I/M1w4uCqdtrFW384= X-Gm-Message-State: AOJu0YwODoZFyuJY0rLX2Ilamb5P9/EZzEFAnKhWBF2q9dCfaHEZhX7G p1/8QGPjImbYW2iJ0u0Ho8RfwBxS0JlvOoMRpkYZVzN77ymMPRFh X-Google-Smtp-Source: AGHT+IFQv6sCQ/RZO3qbpIuvS6GvOaUw4b/GnTGowf78j5xxJRVQZFZoG+uOnRc0Y53F/8YrRzrWgw== X-Received: by 2002:a17:902:dac6:b0:1dc:81a4:4c73 with SMTP id q6-20020a170902dac600b001dc81a44c73mr428907plx.0.1709256422217; Thu, 29 Feb 2024 17:27:02 -0800 (PST) Original-Received: from smtpclient.apple (172-117-161-177.res.spectrum.com. [172.117.161.177]) by smtp.gmail.com with ESMTPSA id 4-20020a170902e9c400b001d7252fef6bsm2145190plk.299.2024.02.29.17.27.01 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 29 Feb 2024 17:27:01 -0800 (PST) In-Reply-To: <86jzmtxffz.fsf@gnu.org> X-Mailer: Apple Mail (2.3731.700.6) 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:280833 Archived-At: > On Feb 24, 2024, at 9:48 PM, Eli Zaretskii wrote: >=20 >> From: Yuan Fu >> Date: Sat, 24 Feb 2024 12:35:50 -0800 >> Cc: acm@muc.de, >> 69071@debbugs.gnu.org >>=20 >>=20 >>=20 >>> On Feb 20, 2024, at 5:55 AM, Eli Zaretskii wrote: >>>=20 >>>> From: Yuan Fu >>>> Date: Mon, 19 Feb 2024 21:49:26 -0800 >>>> Cc: Alan Mackenzie , >>>> 69071@debbugs.gnu.org >>>>=20 >>>> 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. >>>=20 >>> 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?) >>=20 >> We could, but honestly I don=E2=80=99t think they can/want to do = anything. >=20 > I suggest to report this anyway: we don't have anything to lose, and > there's a chance they would like to do something. >=20 > Thanks. I created an issue here: = https://github.com/tree-sitter/tree-sitter-c/issues/196 Hopefully it captures the issue. Yuan=