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.bugs Subject: bug#58558: 29.0.50; re-search-forward is slow in some buffers Date: Wed, 14 Dec 2022 15:10:41 +0200 Message-ID: <83zgbqm8q6.fsf@gnu.org> References: <877d10r21x.fsf@localhost> <87zgdwyvkt.fsf@gnus.org> <87ilkk6ri5.fsf@localhost> <87v8okjei9.fsf@gnus.org> <87tu44jdce.fsf@localhost> <87czasjd9j.fsf@gnus.org> <87k050nio5.fsf@localhost> <87zgdwhw0z.fsf@gnus.org> <83sfjo3tfw.fsf@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> <874jtyuqax.fsf@localhost> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35967"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 58558@debbugs.gnu.org, larsi@gnus.org, monnier@iro.umontreal.ca To: Ihor Radchenko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 14 14:12:16 2022 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 1p5RYQ-0008rh-Lf for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 14 Dec 2022 14:12:10 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p5RYK-0006Et-Tc; Wed, 14 Dec 2022 08:12:04 -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 ) id 1p5RYI-0006B6-Fn for bug-gnu-emacs@gnu.org; Wed, 14 Dec 2022 08:12:02 -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 ) id 1p5RYI-0000ZX-5G for bug-gnu-emacs@gnu.org; Wed, 14 Dec 2022 08:12:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p5RYH-0000Jt-VR for bug-gnu-emacs@gnu.org; Wed, 14 Dec 2022 08:12:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 14 Dec 2022 13:12:01 +0000 Resent-Message-ID: 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.16710234721206 (code B ref 58558); Wed, 14 Dec 2022 13:12:01 +0000 Original-Received: (at 58558) by debbugs.gnu.org; 14 Dec 2022 13:11:12 +0000 Original-Received: from localhost ([127.0.0.1]:39178 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5RXU-0000JO-7c for submit@debbugs.gnu.org; Wed, 14 Dec 2022 08:11:12 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:40722) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5RXR-0000JF-5P for 58558@debbugs.gnu.org; Wed, 14 Dec 2022 08:11: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 ) id 1p5RXJ-0000LZ-LW; Wed, 14 Dec 2022 08:11: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=AbRiFOzd4QP9nt1apZCm1s70FYOlA1/tI3huaVDtxY8=; b=iaLqmLHHiu6O AyJhxQCLxduG7nmeloP2hFpgQ/F0YdOYmfLsTp6G+hE13aWXRaKgR9lK040zw7wHLdqAyW/ct4Uj+ KD7SQyKO7C7jbpuLlIbz6v2GK2u8j1HlHsfdhk5crzWNkMUk0xScueJFzjKCm1Hmu3aKmAzR602Xl 95zI1QxC4pbYf3UzS8t5roXmYNtUGSk5GkreDdEB1sgp8acYJ1dM/1PvPYG1YqPkVhp5/1k218kzx Q9cepkYumXpXlIy3+S1dhetl56TGcdsFoVsNlWljd2aml9g3eNmC6Oq+JHFO/ea7AA0HumYnThfSx ZhMvMTsrheNQ96kx1yCX9Q==; 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 ) id 1p5RX1-0003d9-JH; Wed, 14 Dec 2022 08:10:58 -0500 In-Reply-To: <874jtyuqax.fsf@localhost> (message from Ihor Radchenko on Wed, 14 Dec 2022 12:23:50 +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:250940 Archived-At: > From: Ihor Radchenko > Cc: Eli Zaretskii , larsi@gnus.org, 58558@debbugs.gnu.org > Date: Wed, 14 Dec 2022 12:23:50 +0000 > > 18 breakpoint keep y 0x000055555578be74 in buf_bytepos_to_charpos at marker.c:353 > breakpoint already hit 4,245,365 times > > Combined with the fact that calling `garbage-collect' between benchmarks > makes the benchmark time nearly constant, this result may or may not > mean something. Is the "almost constant" time still significantly slower thane in previous versions? Or is it similar? Anyway, the fact that the time doesn't get worse when you GC between benchmark most probably means that we produce a lot of garbage markers (i.e., temporary markers that very quickly become unreferenced), and they get in the way of buf_bytepos_to_charpos.