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: Sat, 24 Feb 2024 12:35:50 -0800 Message-ID: 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 (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="14244"; 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 Sat Feb 24 21:45:05 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 1rdytN-0003VN-8f for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 24 Feb 2024 21:45:05 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rdyt5-0000y1-Cz; Sat, 24 Feb 2024 15:44:48 -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 1rdysx-0000rx-4N for bug-gnu-emacs@gnu.org; Sat, 24 Feb 2024 15:44:39 -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 1rdysw-0008AC-ST for bug-gnu-emacs@gnu.org; Sat, 24 Feb 2024 15:44:38 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rdytL-0002tq-2i for bug-gnu-emacs@gnu.org; Sat, 24 Feb 2024 15:45:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Yuan Fu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 24 Feb 2024 20:45: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.170880745010881 (code B ref 69071); Sat, 24 Feb 2024 20:45:02 +0000 Original-Received: (at 69071) by debbugs.gnu.org; 24 Feb 2024 20:44:10 +0000 Original-Received: from localhost ([127.0.0.1]:56548 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rdysU-0002p9-51 for submit@debbugs.gnu.org; Sat, 24 Feb 2024 15:44:10 -0500 Original-Received: from mail-qt1-f177.google.com ([209.85.160.177]:61596) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rdysN-0002m0-Rr for 69071@debbugs.gnu.org; Sat, 24 Feb 2024 15:44:04 -0500 Original-Received: by mail-qt1-f177.google.com with SMTP id d75a77b69052e-42c78ba62aaso7437821cf.2 for <69071@debbugs.gnu.org>; Sat, 24 Feb 2024 12:43:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708807354; x=1709412154; 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=MMxg814Jqz3BZUGzxwlaaHyG5oFyej3CSRE26o5x+fE=; b=c/8Bzg7KYh8EhNTso0KWo67YDn/PbFxWwHgQEL0VhIUM2l83kggbzzNjfyRKxC/VW6 gPxFP17ql+Dd6micmt/xdNdr2tJlUM8Llh5cWIKAISJjJWGpWg/2X/ddUfKM8i7wg0e9 FstKlmhOPRqcuWw5ky/8ywnbD+rksTqwGsS+x2s6RZq309Cz4Hy+L63n9Lo6vVWQWlzt oKwNqDNrF+QVmekPqLkk7lX6lXK6VbZEkWSInFigCsfelV9TXNWxPO5+2CJVJhcUC0n6 /IPqgIHPx/2lyIhc6ACFSoFeJrJZj5x0+kwqAkrQDzzKSA4KTbdDlH0YgQZKdeHs38aH yidg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708807354; x=1709412154; 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=MMxg814Jqz3BZUGzxwlaaHyG5oFyej3CSRE26o5x+fE=; b=Ze/1JFu12bnBeuXcGvQYt23pMIq4KyBqhXeHuSqFx6WyguZgqmT18DJBYLC9ZLNdkr Wm/dvnUbHwWE1gVMXTx44WQDxME5DX3rHVZ5opnOkABCYGVXWvC12ZL7EhQaMXkWQuhp c3Z/+rrGTNR9OH0XecudkMdOVozSas2o3MpMxxXQqJOJ+JOnIR8waAcIwe3qA9gqBYbL MFlfsV7Rh1kUP60lOckhX2Cs9FdAWrvVe7iTuCXktpU3fILdgYyZRWZyXq1qzBq1JsgY WcPixku9WG1ypCJXAg8wATsiuyR4JhGKoJKUhmZB2GyilkbGBl9q22aTm8pK2D+GnXsc Bjjg== X-Forwarded-Encrypted: i=1; AJvYcCUL+ITGWrgxl+WFYjtSuQb5zIr9x5l78cXqb2dXp+u5DMgwrdfer8v3evL7EIIpqMJ7iNpVPF0k+p0/by77akbystlPkSo= X-Gm-Message-State: AOJu0YzgeSaIgh1D2xpKLJcWrVaMhhjvyT/kyQbmEdwn+7zJ150+CxZS BEC8mhC5rg1W39W4HyWyOA1Ax5Zudl7ulgl0tGl0Q3kmK7mwzb0HRU5Z+fvs X-Google-Smtp-Source: AGHT+IEtxfzlibAlRoFjYyAv8QTxdNFC+Z1OiYP/CB88WLQpQStGH2jWEQ6VHCSJ4dhfh6tKKne1fw== X-Received: by 2002:a05:6830:39d8:b0:6e4:8205:d73e with SMTP id bt24-20020a05683039d800b006e48205d73emr3778975otb.10.1708806962464; Sat, 24 Feb 2024 12:36: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 fk17-20020a056a003a9100b006e043d3e5c2sm1444960pfb.162.2024.02.24.12.36.01 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 24 Feb 2024 12:36:01 -0800 (PST) In-Reply-To: <86ttm3nst2.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:280578 Archived-At: > 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?) We could, but honestly I don=E2=80=99t think they can/want to do = anything. Yuan=