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: Fri, 12 Aug 2022 15:52:09 +0300 Message-ID: <837d3doc92.fsf@gnu.org> References: <87r11s2p7f.fsf@gnus.org> <87fsi818ju.fsf@gnus.org> <87wnbkyuhe.fsf@gnus.org> <83sfm8vxht.fsf@gnu.org> <87k07hxwe9.fsf@gnus.org> <87fsi5xw9l.fsf@gnus.org> <83pmh8qlgy.fsf@gnu.org> <87y1vtr5py.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3260"; mail-complaints-to="usenet@ciao.gmane.io" Cc: acm@muc.de, emacs-devel@gnu.org To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Aug 12 14:56:33 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 1oMUDI-0000dY-M3 for ged-emacs-devel@m.gmane-mx.org; Fri, 12 Aug 2022 14:56:32 +0200 Original-Received: from localhost ([::1]:52298 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oMUDH-00036d-Ln for ged-emacs-devel@m.gmane-mx.org; Fri, 12 Aug 2022 08:56:31 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48952) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oMU98-0006ja-QM for emacs-devel@gnu.org; Fri, 12 Aug 2022 08:52:14 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:44582) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oMU98-0006U2-Gr; Fri, 12 Aug 2022 08:52:14 -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=Jr5GRqL42gnUv6xs3oL08kKunm+6a5BqUHMRhzpSRkQ=; b=YbDVv17eDyw/ kAVc2CR1JszIxxMjbRlk7Aox/h0O7GXA5UDWSS149926hhTMCEouyYGshSwMUtR52TRPTmNEKLt0F 7truCWdnDy6MObS0DfcGcFA0yccQw0AzMlx99UXvqOZIMT6OPNpD6MgTac8qLUher7y2d7+ySQGJL 13H6bYvG0hYwyakJi9oX5MkBT1QVgTQDJ6Mnv6xrbFJQjE/aSVXTj5xT1+4zIUK4rEfcX84LXhgqE yOTP/0UuHUqg/oQ5lzdWlTBmeFTvfzKe9ZRhfDYO04vHEDKbrsYiBbmiraZab+iwMlpS/T/ag+Skq p78kXIPbuUFOlgjjr/j3bA==; Original-Received: from [87.69.77.57] (port=2327 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 1oMU97-0003Ia-Lc; Fri, 12 Aug 2022 08:52:14 -0400 In-Reply-To: <87y1vtr5py.fsf@gnus.org> (message from Lars Ingebrigtsen on Fri, 12 Aug 2022 14:44:57 +0200) 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:293385 Archived-At: > From: Lars Ingebrigtsen > Cc: acm@muc.de, emacs-devel@gnu.org > Date: Fri, 12 Aug 2022 14:44:57 +0200 > > Eli Zaretskii writes: > > > Lars, can you post the file with which you see the hang? I suspect we > > are not using the same contents. > > It's with this recipe: > > > > 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. > > And then `M->' -- this will hang Emacs (until you hit `C-g', so it's not > a "hard" hang). It doesn't hang here, even though my Emacs is unoptimized. It takes maybe 10 sec or so.