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.devel Subject: Re: New optimisations for long raw strings in C++ Mode. Date: Sun, 07 Aug 2022 19:17:50 +0300 Message-ID: <83sfm8vxht.fsf@gnu.org> References: <87r11s2p7f.fsf@gnus.org> <87fsi818ju.fsf@gnus.org> <87wnbkyuhe.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22154"; mail-complaints-to="usenet@ciao.gmane.io" Cc: larsi@gnus.org, emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Aug 07 18:18:44 2022 Return-path: Envelope-to: ged-emacs-devel@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 1oKizD-0005eu-P4 for ged-emacs-devel@m.gmane-mx.org; Sun, 07 Aug 2022 18:18:43 +0200 Original-Received: from localhost ([::1]:51664 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oKizC-0000tB-Pj for ged-emacs-devel@m.gmane-mx.org; Sun, 07 Aug 2022 12:18:42 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48062) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oKiyd-0000BI-7b for emacs-devel@gnu.org; Sun, 07 Aug 2022 12:18:07 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:57494) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oKiyc-00008D-TF; Sun, 07 Aug 2022 12:18:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=dfboJ0II8kL8qJH908THZ0mpT10M1dpk5EQHY7LJKa8=; b=sF965sr90jcH GQoFBUwroQPuy40uS+l1DGr6GSrzyfJyF/xIaOTurgq61iQS09Pu5X8wcPj51U02FnLgqEzM3GPdc yrt36RUtJ9H8U8kocYTySCzS1Cj9JNAl9lLxwxvKzCuwh5tt+o7twQ9RSqxflKgz4VPHy6SmGDl9y UdBhhnYfGk/Rzjc7xRgoKj5yAhT0HnkMn4KgLFOPqD+hFAuy83dkmMbKmbbMQEFZHOcp5od4ExUUC V3K7Nq1EY+CRj7WcTVXrcTDjUZPM6d268D0KtEgRdPMObIEmZpga/zHb58OP9mf8N56B7eWLPyC3d rnFni86GMr4QhW/v5WWg9w==; Original-Received: from [87.69.77.57] (port=1957 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oKiyc-0007GI-BY; Sun, 07 Aug 2022 12:18:06 -0400 In-Reply-To: (message from Alan Mackenzie on Sun, 7 Aug 2022 16:13:56 +0000) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:293219 Archived-At: > Date: Sun, 7 Aug 2022 16:13:56 +0000 > Cc: emacs-devel@gnu.org > From: Alan Mackenzie > > > Simplest case to reproduce: > > > M-: (setq long-line-threshold nil) > > > Go to a cc buffer containing: > > > char long_line[] = R"foo( > > > )foo" > > > M-: (insert (make-string 1000000 ?y)) > > > on the second line. This reliably hangs Emacs for me. > > Actually, when I try your recipe with make-string, it hangs for me, too, > for quite a few minutes. Alternatively, when I do C-y, the insertion > takes a little less than a second. I actually tried the "C-y" recipe, and it hangs for me that way, too.