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: Thu, 13 Apr 2023 07:52:43 +0300 Message-ID: <83leiw5qp0.fsf@gnu.org> References: <877d10r21x.fsf@localhost> <838rjbpecw.fsf@gnu.org> <87fsdjwb4e.fsf@localhost> <874jtyuqax.fsf@localhost> <83zgbqm8q6.fsf@gnu.org> <87sfhit8ug.fsf@localhost> <83tu1ym6jo.fsf@gnu.org> <87h6xyt77x.fsf@localhost> <87h6ttkz6n.fsf@localhost> <838rf5qkpt.fsf@gnu.org> <87lej0zv92.fsf@localhost> <83ttxol6f5.fsf@gnu.org> <87h6tolybs.fsf@localhost> <87zg7e8xnt.fsf@localhost> <83ttxmab7x.fsf@gnu.org> <87sfd5b4oy.fsf@localhost> <8735559ncj.fsf@localhost> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3262"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 58558@debbugs.gnu.org, acm@muc.de, yantar92@posteo.net, larsi@gnus.org To: Stefan Monnier , Andrea Corallo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Apr 13 06:53:24 2023 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 1pmoxX-0000bu-51 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 13 Apr 2023 06:53:23 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pmoxE-0001TC-1X; Thu, 13 Apr 2023 00:53:04 -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 1pmoxC-0001T2-LM for bug-gnu-emacs@gnu.org; Thu, 13 Apr 2023 00:53:02 -0400 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 1pmoxC-0003Nz-D4 for bug-gnu-emacs@gnu.org; Thu, 13 Apr 2023 00:53:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pmoxC-0008Fz-2J for bug-gnu-emacs@gnu.org; Thu, 13 Apr 2023 00:53:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 13 Apr 2023 04:53:02 +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.168136152831669 (code B ref 58558); Thu, 13 Apr 2023 04:53:02 +0000 Original-Received: (at 58558) by debbugs.gnu.org; 13 Apr 2023 04:52:08 +0000 Original-Received: from localhost ([127.0.0.1]:42320 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pmowJ-0008Ej-MK for submit@debbugs.gnu.org; Thu, 13 Apr 2023 00:52:07 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:44096) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pmowF-0008E9-Dx for 58558@debbugs.gnu.org; Thu, 13 Apr 2023 00:52:06 -0400 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 1pmow8-0003JZ-Pz; Thu, 13 Apr 2023 00:51:56 -0400 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=+3te41vh0iaILwKXEVizYa8/WRUrWVjSUMmcKv2Em3A=; b=aX5yMKjdKDLr tiW6J2i937svWo1SVcE3uKUtdUMAVkm3N8rGk4go7gdWQig3RxdOdBswyRP88dJIyL99OS/VHTMuS joXC90Uc6MhFjdgnY7BuMX7ef2HCY9OulHjpCjeHbjgOzjuenvNBO5hzoAn9+iRMH9PRKDetMYtT0 lVNKrABs+78GAoMyde7p5wF+FCJdKBkJITXeqq9nwZsb7s2lUapN1EisUIH0AyFbvzFv6XAZky92w sWLtFo10B9jBjia9FUpu3OxhfizFqQnRnkdAIawqu6bXLx6Aep8kHmCP8SStAToMMv4HNI91WIDkJ +vXdheMBD3mLOZe2YJ74YQ==; 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 1pmow8-000704-3v; Thu, 13 Apr 2023 00:51:56 -0400 In-Reply-To: (message from Stefan Monnier on Wed, 12 Apr 2023 19:23:19 -0400) 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:259828 Archived-At: > From: Stefan Monnier > Cc: Alan Mackenzie , Eli Zaretskii , > larsi@gnus.org, 58558@debbugs.gnu.org > Date: Wed, 12 Apr 2023 19:23:19 -0400 > > > For the former, we could probably extend the `b_property` and > > `e_property` fields of `gl_state` (which hold charpos) to also store > > their bytepos equivalent, which should significantly reduce the number > > of conversions between bytepos and charpos. > > I.e. something like the patch below (which passes all tests except for > `test/src/comp-tests` for a reason that completely escapes me). Andrea, could you please help Stefan with that test failure?