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, 15 Feb 2024 20:06:44 -0800 Message-ID: <7178B3F3-CCD7-4A2B-9F29-DFF78A6BA243@gmail.com> References: <86le7mw2dg.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="19190"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Alan Mackenzie , 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 Feb 16 05:09:02 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 1rapX1-0004lA-Qe for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 16 Feb 2024 05:08:59 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rapWn-0001Sn-3g; Thu, 15 Feb 2024 23:08: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 1rapWl-0001SU-Ur for bug-gnu-emacs@gnu.org; Thu, 15 Feb 2024 23:08:43 -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 1rapWl-0001Q4-Lf for bug-gnu-emacs@gnu.org; Thu, 15 Feb 2024 23:08:43 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rapX4-0008RZ-Iq for bug-gnu-emacs@gnu.org; Thu, 15 Feb 2024 23:09: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, 16 Feb 2024 04:09: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.170805650632403 (code B ref 69071); Fri, 16 Feb 2024 04:09:02 +0000 Original-Received: (at 69071) by debbugs.gnu.org; 16 Feb 2024 04:08:26 +0000 Original-Received: from localhost ([127.0.0.1]:57742 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rapWU-0008QZ-6v for submit@debbugs.gnu.org; Thu, 15 Feb 2024 23:08:26 -0500 Original-Received: from mail-pl1-f175.google.com ([209.85.214.175]:42471) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rapWP-0008Q6-7Q for 69071@debbugs.gnu.org; Thu, 15 Feb 2024 23:08:22 -0500 Original-Received: by mail-pl1-f175.google.com with SMTP id d9443c01a7336-1db5212e2f6so11934855ad.1 for <69071@debbugs.gnu.org>; Thu, 15 Feb 2024 20:08:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708056416; x=1708661216; 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=n8JXatupuTxC+Hd6j6nlAgjq7oXSW4q/8s0DS1IDNs8=; b=VkUEQsoKMIbRrhh0RkPM5j4SuukA/iZFUM0wb3eK5OGOD2V/3H1Z5sCxQwJ6w+lNE/ Yl6dmUyI3WU4mctIh6QbH0mLMom6LjSB7mueMulZaD32kV27qzOdJnbzr01t5w7p4MIX UgZtgend7EWml9ePX9Jw6bjhVrWM63QD2NTPeuo3Kuqb0PnUBG8lGQbiukX7574sQ8Kw 6VQmpvYZJhe1T7qqLYvyOA+P4abWkHUidVlttGcLeJDQ5ReDovdgKzEB9pnAowCrjxIp 7xjJ11yLEVFbTY92IPtK1yGOc7EkK8K0Rn4pUlEt5ZxF7wpzaAKfuLvmJPShkJWj5v9k 6Egg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708056416; x=1708661216; 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=n8JXatupuTxC+Hd6j6nlAgjq7oXSW4q/8s0DS1IDNs8=; b=crsXJEagCXwavimwAItB+TlegfUSAy28SDfNsZMNrOzJL732mwc00wZ1zFz3ZjhvgX OZ3UKoJnwjeW/WBVydr5Bc7Mq7Io9r2VMVAJ3SyhX24i4z6okkhjt7CBdf19k04iaOJe 4lA/p9BdMZ9jm+zztqGxobSynIJmpsmUyOs19AHeSVMI+8OcIz3OaGjI19GK+ZHlL9b9 Ec5MMPGJ6MbHI4BClM7A6JzDcExf/SgW01lt75YucUeY+vlhdVndkiBH5eMXFHypGEil y7+DMBQ2w/4ja1Kx22mnqjjmB5dAYlxBCVhB8CUkn8o7CXDhTgG1HGvDP6eW153wHkjY MwJw== X-Forwarded-Encrypted: i=1; AJvYcCUDaaTiKm8calcQziglYNLL/rINPKyDF/K50gKBALnc1TfaHRITPcTHiQJZZW0jvjuVQ5fG0iNqckuxLVvMrPWr+HGhbXU= X-Gm-Message-State: AOJu0YyPEkJRgtIaAbelEkORiQLudrdyCyyfsKXBYeFutY+HLWsc6Ptc fZe/AMAP7xixQD+ELDeNirMqD1xbpX/4IoesebLhLdL+0wFTGM1V X-Google-Smtp-Source: AGHT+IGil+0G5HOvw+xvCAfKXV+KoY3zTJJUlnBibYn6yF8MhXSItU8RRTL2gxLpn1ojRODbE1OXUQ== X-Received: by 2002:a17:903:2311:b0:1d9:b58e:709c with SMTP id d17-20020a170903231100b001d9b58e709cmr5731374plh.4.1708056415966; Thu, 15 Feb 2024 20:06:55 -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 ky7-20020a170902f98700b001db6594bc27sm2032068plb.14.2024.02.15.20.06.55 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 15 Feb 2024 20:06:55 -0800 (PST) In-Reply-To: <86le7mw2dg.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:280087 Archived-At: > On Feb 15, 2024, at 12:36 AM, Eli Zaretskii wrote: >=20 >> Date: Mon, 12 Feb 2024 11:30:00 +0000 >> From: Alan Mackenzie >>=20 >> Using Emacs master: >>=20 >> c-ts-mode is slow on large C functions when editing towards the end = of >> such a function. >>=20 >> As an extreme example, there is a function proto_register_rrc in the >> file packet-rrc.c which is part of Wireshark. This file is = "available" >> from Github, but sadly no longer freely available - you need to allow >> Microsoft's scripts to run on your machine. I'm willing to send this >> file by email to anybody who needs it. It is almost 10 MB in size. >>=20 >> proto_register_rrc is around 50,000 lines long, total size about 2=C2=BC= MB. >>=20 >> Near the end of the function, after typing a character, there is a = delay >> of between 9 and 10 seconds (on my 7 year old machine) before = redisplay >> happens. This is too long. Some optimisation seems needed. >>=20 >> On disabling font-lock-mode, the response becomes instantaneous. >=20 > Yuan, could you please look into this? Oops, didn=E2=80=99t see this. I=E2=80=99ll take a look. Yuan