From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail
From: Eli Zaretskii <eliz@gnu.org>
Newsgroups: gmane.emacs.bugs
Subject: bug#58558: 29.0.50; re-search-forward is slow in some buffers
Date: Wed, 14 Dec 2022 16:12:53 +0200
Message-ID: <83sfhim5ui.fsf@gnu.org>
References: <877d10r21x.fsf@localhost> <83sfjo3tfw.fsf@gnu.org>
 <jwvbkqbhnu8.fsf-monnier+emacs@gnu.org> <878rlfjmjh.fsf@localhost>
 <87mt9tbbbp.fsf@gnus.org> <8335bl18lo.fsf@gnu.org>
 <87wn8x9eqb.fsf@gnus.org> <87tu1zd2c6.fsf@localhost>
 <83h6xzphxm.fsf@gnu.org> <87wn6vbfaa.fsf@localhost>
 <838rjbpecw.fsf@gnu.org> <87fsdjwb4e.fsf@localhost>
 <83zgbrnv53.fsf@gnu.org> <87bko78aif.fsf@localhost>
 <83o7s7nqch.fsf@gnu.org> <878rjb89kq.fsf@localhost>
 <83mt7rnkb7.fsf@gnu.org> <87cz8musay.fsf@localhost>
 <831qp2nnhz.fsf@gnu.org> <87v8met8zt.fsf@localhost>
 <83v8mem7p1.fsf@gnu.org> <87mt7qt880.fsf@localhost>
Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214";
	logging-data="31997"; mail-complaints-to="usenet@ciao.gmane.io"
Cc: 58558@debbugs.gnu.org, larsi@gnus.org, monnier@iro.umontreal.ca
To: Ihor Radchenko <yantar92@posteo.net>
Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 14 15:37:29 2022
Return-path: <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org>
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 <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org>)
	id 1p5Ssy-00085m-RX
	for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 14 Dec 2022 15:37:29 +0100
Original-Received: from localhost ([::1] helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <bug-gnu-emacs-bounces@gnu.org>)
	id 1p5SWL-0002nT-Cv; Wed, 14 Dec 2022 09:14:05 -0500
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 <Debian-debbugs@debbugs.gnu.org>)
 id 1p5SWJ-0002mK-EY
 for bug-gnu-emacs@gnu.org; Wed, 14 Dec 2022 09:14:03 -0500
Original-Received: from debbugs.gnu.org ([209.51.188.43])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>)
 id 1p5SWJ-0006ig-5c
 for bug-gnu-emacs@gnu.org; Wed, 14 Dec 2022 09:14:03 -0500
Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
 (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1p5SWI-00015J-GI
 for bug-gnu-emacs@gnu.org; Wed, 14 Dec 2022 09:14:02 -0500
X-Loop: help-debbugs@gnu.org
Resent-From: Eli Zaretskii <eliz@gnu.org>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@gnu.org
Resent-Date: Wed, 14 Dec 2022 14:14:02 +0000
Resent-Message-ID: <handler.58558.B58558.16710271924139@debbugs.gnu.org>
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: followup 58558
X-GNU-PR-Package: emacs
Original-Received: via spool by 58558-submit@debbugs.gnu.org id=B58558.16710271924139
 (code B ref 58558); Wed, 14 Dec 2022 14:14:02 +0000
Original-Received: (at 58558) by debbugs.gnu.org; 14 Dec 2022 14:13:12 +0000
Original-Received: from localhost ([127.0.0.1]:39493 helo=debbugs.gnu.org)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
 id 1p5SVT-00014h-R2
 for submit@debbugs.gnu.org; Wed, 14 Dec 2022 09:13:12 -0500
Original-Received: from eggs.gnu.org ([209.51.188.92]:34558)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@gnu.org>) id 1p5SVQ-00014b-HB
 for 58558@debbugs.gnu.org; Wed, 14 Dec 2022 09:13:11 -0500
Original-Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@gnu.org>)
 id 1p5SVK-00069d-1z; Wed, 14 Dec 2022 09:13:02 -0500
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=nFex79qukNwwMueYc772gPdDjg9hlCXxfmZRj8Z3JiQ=; b=An8NzYAG/E1M
 VU8EwdJpEYc2aFXlzNozv47a6CXAj/gkk6UX6Scq+iRr8+Mq+6lNvaZoLgqwtB6n38mpEL8KlJzBN
 PEIx+ftZ1jD8xh34lvtZANFABKXbLAdxPrSQF0K9DbAOvVx8kvOa8kltUdhBHn0RaikI+MVvKfiEi
 pSXZq02xlkwdhoYXEXTzDhNAtKWbcGeiFO+GVZEdYRkKePLBML2SgRbUceKEJOYP1xBSWET14brQx
 7gQJx+i+FI3MZyjsdEL8Un6Zn0SKhg6NR2I/IakHCxwilETvaDK3wJyPp3GP8pbfvqI6BilMIzl89
 zwjB9LVfsb5G/Vm0eEBM5A==;
Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@gnu.org>)
 id 1p5SVE-0001Ny-KF; Wed, 14 Dec 2022 09:13:01 -0500
In-Reply-To: <87mt7qt880.fsf@localhost> (message from Ihor Radchenko on Wed,
 14 Dec 2022 13:39:43 +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" <bug-gnu-emacs.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-gnu-emacs>,
 <mailto:bug-gnu-emacs-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/bug-gnu-emacs>
List-Post: <mailto:bug-gnu-emacs@gnu.org>
List-Help: <mailto:bug-gnu-emacs-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-gnu-emacs>,
 <mailto:bug-gnu-emacs-request@gnu.org?subject=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:250946
Archived-At: <http://permalink.gmane.org/gmane.emacs.bugs/250946>

> From: Ihor Radchenko <yantar92@posteo.net>
> Cc: larsi@gnus.org, monnier@iro.umontreal.ca, 58558@debbugs.gnu.org
> Date: Wed, 14 Dec 2022 13:39:43 +0000
> 
> How can I find the number of buffer markers?

Compile Emacs with -DMARKER_DEBUG, and then you can call count_markers
from GDB:

  (gdb) print count_markers(current_buffer)

But you need to make sure current_buffer is the buffer you are
interested in.  One trick is to do this:

  (gdb) break Fredraw_display

and then type "M-x redraw-display" with the buffer in the selected
window.  Then call count_markers as above, and it should return the
number of markers in the current buffer.