From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier 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: Tue, 25 Jun 2024 17:04:25 -0400 Message-ID: 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="5197"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 63040@debbugs.gnu.org To: Ihor Radchenko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jun 26 06:11:20 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 1sMK08-0001Bc-4E for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 26 Jun 2024 06:11:20 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sMDPc-0005SO-OR; Tue, 25 Jun 2024 17:09:30 -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 1sMDPM-0005NY-Ap for bug-gnu-emacs@gnu.org; Tue, 25 Jun 2024 17:08:57 -0400 Original-Received: from [2001:470:142:5::43] (helo=debbugs.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sMDP8-0005NC-N6 for bug-gnu-emacs@gnu.org; Tue, 25 Jun 2024 17:08:42 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sMDMX-0006dM-Jr for bug-gnu-emacs@gnu.org; Tue, 25 Jun 2024 17:06: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 21:06:01 +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.171934953125466 (code B ref 63040); Tue, 25 Jun 2024 21:06:01 +0000 Original-Received: (at 63040) by debbugs.gnu.org; 25 Jun 2024 21:05:31 +0000 Original-Received: from localhost ([127.0.0.1]:37702 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sMDLv-0006cY-Dl for submit@debbugs.gnu.org; Tue, 25 Jun 2024 17:05:31 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:19286) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sMDLa-0006bN-5G for 63040@debbugs.gnu.org; Tue, 25 Jun 2024 17:05:20 -0400 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 328E74445C2; Tue, 25 Jun 2024 17:04:28 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1719349466; bh=uj2Ig4lHQVRbPFu0pMR2H/5i1rT7wNxq4OiGwRGpZdY=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=XiKxfyOvAPRJP4AI2fPBpmL29Pb/KNJXRzDF0j/Ov36Z76m9sX2xrlJFOaUhZ/0nm o20lTP5nPwAlSwK8XhzWiEvALcloP5qvl4RR+cyzQx266q6dZ4Pg66mULKqZzdLBoh aw+xihhApzO6K7l5O4sLwJu4OmxQ68MWxj/pecxO8cYEzfnfQHpv5fNDljrszVV88C eB1X9ara5TY15ZcedDWgxTYlhb4g85++5hCmLo4AzWoqrviTL65eCm4tSOaz2q78fJ dsnHfEPKzbbxjzugEhaRvjAp6DB7YCfW9e/FXipm153fCIhEuhhcwTYzXE6mGR8zNm 6ZjIDlZqfjPpw== Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 852664445C0; Tue, 25 Jun 2024 17:04:26 -0400 (EDT) Original-Received: from lechazo (lechon.iro.umontreal.ca [132.204.27.242]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 78395120399; Tue, 25 Jun 2024 17:04:26 -0400 (EDT) In-Reply-To: <878reiwfm3.fsf@localhost> (Ihor Radchenko's message of "Sun, 23 Apr 2023 19:41:40 +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:287907 Archived-At: 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? Stefan