From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.bugs Subject: bug#63040: 30.0.50; Performance of buf_bytepos_to_charpos when a buffer has large number of markers Date: Wed, 26 Jun 2024 12:47:02 +0000 Message-ID: <87tthfkh15.fsf@localhost> References: <878reiwfm3.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18854"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 63040@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jun 26 14:47:01 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 1sMS3A-0004hF-9N for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 26 Jun 2024 14:47:00 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sMS2v-0004ji-70; Wed, 26 Jun 2024 08:46:45 -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 1sMS2L-0004hK-34 for bug-gnu-emacs@gnu.org; Wed, 26 Jun 2024 08:46:10 -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 1sMS2C-0001AL-8c for bug-gnu-emacs@gnu.org; Wed, 26 Jun 2024 08:46:07 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sMS2E-0007V6-B7 for bug-gnu-emacs@gnu.org; Wed, 26 Jun 2024 08:46:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 26 Jun 2024 12:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63040 X-GNU-PR-Package: emacs Original-Received: via spool by 63040-submit@debbugs.gnu.org id=B63040.171940593528796 (code B ref 63040); Wed, 26 Jun 2024 12:46:02 +0000 Original-Received: (at 63040) by debbugs.gnu.org; 26 Jun 2024 12:45:35 +0000 Original-Received: from localhost ([127.0.0.1]:38753 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sMS1n-0007UO-9W for submit@debbugs.gnu.org; Wed, 26 Jun 2024 08:45:35 -0400 Original-Received: from mout02.posteo.de ([185.67.36.66]:40309) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sMS1k-0007U9-Ab for 63040@debbugs.gnu.org; Wed, 26 Jun 2024 08:45:33 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 9B741240104 for <63040@debbugs.gnu.org>; Wed, 26 Jun 2024 14:45:23 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1719405923; bh=fP3NM+blsKQss2Bt/uJvkhqs4FIEKGZzkSu7u+8ATo0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=lrGclLkShN2/bbzCM6jK5liK30ynMPMS76tPihnqmv2iQ9orPCFNFMUX0G+y3z77S lZk73jkUF0z+DeYSrsdhrY5KfMSz2K1tX2RwW5SYgCzsQG97mf+UBo/+n2LVPxhmth 6bJ6+21sT6PxNR3SX27QGTOMr0yQerQ9/Xs3Icg1p2OP2+iIpmnjBo4WbFoZMRB7OZ gihkD4xgiajML1XbvrB6D/YI++nYJVYjXq+anfSxBhpfiahJYzexp4IetTnTCw8K2L BDpE2cAS1ZhusZBw6w3egQmeqP+FDnHlcLprcy0A6TVbItYi6bX8GJTHM28vufpQKJ FLFLRXXBqMbwg== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4W8LyW1gs2z9rxN; Wed, 26 Jun 2024 14:45:23 +0200 (CEST) In-Reply-To: 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:287936 Archived-At: Stefan Monnier writes: > Hi Ihor, > >> When investigating `re-search-forward' performance in >> https://debbugs.gnu.org/cgi/bugreport.cgi?bug=58558 (bug#58558), I >> noticed that buf_bytepos_to_charpos is taking most of the CPU time, >> according to perf stats. > > I couldn't find a recipe to reproduce the problem. > Could you point me to it? The recipe is gone, because 0x0 has already deleted the reproducer I managed to create (it was a large file). Although, I am still able to reproduce with my private .org files. I am using the i < 50 hack as a remedy. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at