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#74357: c-mode: Some syntactic constructs cause unreasonable typing lag Date: Sat, 16 Nov 2024 13:00:43 +0200 Message-ID: <86ttc7h290.fsf@gnu.org> References: <86v7wphrmi.fsf@gnu.org> <86ed3cinfg.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="27177"; mail-complaints-to="usenet@ciao.gmane.io" Cc: acm@muc.de, 74357@debbugs.gnu.org To: =?UTF-8?Q?Bj=C3=B6rn?= Lindqvist Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Nov 16 12:02:33 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 1tCGZV-0006vV-4Q for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 16 Nov 2024 12:02:33 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tCGZM-0002A2-1V; Sat, 16 Nov 2024 06:02:24 -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 1tCGZ0-00029e-SW for bug-gnu-emacs@gnu.org; Sat, 16 Nov 2024 06:02:03 -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 1tCGZ0-0002iv-JA for bug-gnu-emacs@gnu.org; Sat, 16 Nov 2024 06:02:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-version:References:In-Reply-To:From:Date:To:Subject; bh=Jcl/rDMrPv6aGL9wkuYocl7+9pgDoKNiaP4dGHW0pIo=; b=XHh1sSSKvPlarODEgC3tjFFdvtxKNNz3cJeD63YafJDMDdlKKWc+bJtwBTQzFFS6Kjm48XWE9vIrb/74bzTFdN92V1fo7Kc/w15tE/weBsOSVhQgRhAIm21AWZzta0SVfBJu7lldbwJIme+YooUM4oSMDEvG36i3upuctgddb/hVvzi14A4kwTgvoF8Wt49xDcSDYWEoqMDRn4dyGIhbndlaHZ1O8z3nXMDqiKm+iiO/vgHtfPtKKqad7y2xqPcGc+Q3npWT5Uo+yUxZsuy2txF91ajBhu40Ot774vslaAekwe1esacu+A3Mbb0QIdMxQosM4vDWYDgRz0hl1ijS3A==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tCGZ0-0004WC-D0 for bug-gnu-emacs@gnu.org; Sat, 16 Nov 2024 06:02: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: Sat, 16 Nov 2024 11:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74357 X-GNU-PR-Package: emacs Original-Received: via spool by 74357-submit@debbugs.gnu.org id=B74357.173175488117300 (code B ref 74357); Sat, 16 Nov 2024 11:02:02 +0000 Original-Received: (at 74357) by debbugs.gnu.org; 16 Nov 2024 11:01:21 +0000 Original-Received: from localhost ([127.0.0.1]:52257 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tCGYL-0004Uy-7h for submit@debbugs.gnu.org; Sat, 16 Nov 2024 06:01:21 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:52326) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tCGYJ-0004Ui-2E for 74357@debbugs.gnu.org; Sat, 16 Nov 2024 06:01:20 -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 1tCGYB-0002ga-F6; Sat, 16 Nov 2024 06:01:12 -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=Jcl/rDMrPv6aGL9wkuYocl7+9pgDoKNiaP4dGHW0pIo=; b=JZ+WbOUzHvs+nzKk6QWs UMkwgtXtO6cTOVAAiiH04dqtdV5nSWbzehY1XX9VZIWsHQG40dYNydg7xIRt3Mtd3GcfaZFmrSFFH zUWt2X2ql8nSOR6WSxNN27jDS5c2OHBO3YWr74XNdITRgikdxnXXF9pYfpl2d2hJ0HC+P8U5OK/Zq 3BoG8kwxg+QGu2+zxNPjx/JvQx1zfHyu1rDtDO3RUKTFn7Y9PjL/rs0WdQuHAFOWIV4e1ZfoQMTh1 O5yCjBGid6gx6TxeG3uaJzZ/AHKCVow406oT3457exdPJv6EO9malj7LsyE75rb1+Km+hmF/IRxvX RV+RI9sXR4U5qw==; In-Reply-To: (message from =?UTF-8?Q?Bj=C3=B6rn?= Lindqvist on Fri, 15 Nov 2024 22:43:45 +0100) 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:295443 Archived-At: > From: Björn Lindqvist > Date: Fri, 15 Nov 2024 22:43:45 +0100 > Cc: acm@muc.de, 74357@debbugs.gnu.org > > Den fre 15 nov. 2024 kl 15:25 skrev Eli Zaretskii : > > Can you tell where in real life do you see such deeply-nested braces > > in C source files? > > 50 is perhaps exaggerating it, but in "modern" C++ with multiple > namespaces, nested classes, and anonymous functions you can easily get > scopes nested over a dozen levels deep. Can you show such a file from a real-life project? I'd like us to have it as a means for judging real-life performance in these cases. Thanks.