From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#71644: 30.0.50; Severe slowdown in larger files with markers beginning in emacs 29+ Date: Mon, 24 Jun 2024 23:07:32 -0400 Message-ID: References: <86ed8tozub.fsf@gnu.org> <86jzijmo5a.fsf@gnu.org> <87h6dmbyy2.fsf@localhost> <87wmmhgjao.fsf@localhost> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13159"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Mitchell , Eli Zaretskii , 71644@debbugs.gnu.org To: Ihor Radchenko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jun 25 05:08:32 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 1sLwXn-0003AE-RU for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 25 Jun 2024 05:08:32 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sLwXL-0000NV-EH; Mon, 24 Jun 2024 23:08:03 -0400 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 1sLwXJ-0000NM-3b for bug-gnu-emacs@gnu.org; Mon, 24 Jun 2024 23:08:01 -0400 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 1sLwXI-000571-NH for bug-gnu-emacs@gnu.org; Mon, 24 Jun 2024 23:08:00 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sLwXJ-00076w-T4 for bug-gnu-emacs@gnu.org; Mon, 24 Jun 2024 23:08:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 25 Jun 2024 03:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71644 X-GNU-PR-Package: emacs Original-Received: via spool by 71644-submit@debbugs.gnu.org id=B71644.171928486727312 (code B ref 71644); Tue, 25 Jun 2024 03:08:01 +0000 Original-Received: (at 71644) by debbugs.gnu.org; 25 Jun 2024 03:07:47 +0000 Original-Received: from localhost ([127.0.0.1]:35909 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sLwX5-00076S-0S for submit@debbugs.gnu.org; Mon, 24 Jun 2024 23:07:47 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:20675) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sLwX0-000769-HD for 71644@debbugs.gnu.org; Mon, 24 Jun 2024 23:07:45 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 39CAC10016C; Mon, 24 Jun 2024 23:07:34 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1719284853; bh=qoSMD/e8SLLYtaKGGfGnV1WzYdl90Rh6hK2rxkC2N+k=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=Btwm8XNMOVBlCE4Q6kQFrzUWCpn8biTXIw5gmt1F2Jo9VAE1oRjnNB9r54Z2jYiL2 sip/tqk+Rr7fx8NYawPJTzVt01BCzgi9DkskBvOmBNwhPVGYpSzDhOYuJ5iXo4Qgah H1AmlNvs+wAdS59Z4o5DqfQEyW/zcrShEQZhgiY5z55CZXT9AIFc4EaQLCjovfMx54 HE4AdZ5ZkyThJIe0crZEqye2wuOdgoev7hTa0Cf24fm/r28fCbINhC47Usto2rMIHo e33UGc9hpdBX/3K7xLvrLB06e83Wo6yg2WyUg3/2LtkbfDWC7XMEOfDjADsFkTzrp0 oI75/z5Y6ZfjA== Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 150E2100048; Mon, 24 Jun 2024 23:07:33 -0400 (EDT) Original-Received: from pastel (unknown [24.140.236.196]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id D47E7120170; Mon, 24 Jun 2024 23:07:32 -0400 (EDT) In-Reply-To: <87wmmhgjao.fsf@localhost> (Ihor Radchenko's message of "Sat, 22 Jun 2024 14:10:23 +0000") 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:287868 Archived-At: One other thing I notice: If I use Emacs-29 but with Org-9.5.5 (i.e., the version included in Emacs-28.2) the recipe doesn't show the slowdown. There's still a good chance that the slow behavior is due to chars<->bytes conversion (there's no doubt that this code's performance can be quite poor), but I suspect the reason for the change of behavior between Emacs-28 and Emacs-29 lies in Org rather than in Emacs's C code. If someone more familiar with the changes that occurred in Org around that time could try and track down the specific change that triggers the problem, that would be appreciated. Stefan