GNU bug report logs - #55729
27.1; Emacs 28.1 `string-match' is five times slower than Emacs 27.1

Previous Next

Package: emacs;

Reported by: Chen Bin <chenbin.sh <at> gmail.com>

Date: Mon, 30 May 2022 14:47:01 UTC

Severity: normal

Found in version 27.1

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #17 received at 55729 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: chenbin.sh <at> gmail.com, 55729 <at> debbugs.gnu.org
Subject: Re: bug#55729: 27.1;
 Emacs 28.1 `string-match' is five times slower than Emacs 27.1
Date: Mon, 30 May 2022 18:58:17 +0300
> Resent-From: Lars Ingebrigtsen <larsi <at> gnus.org>
> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
> Resent-CC: bug-gnu-emacs <at> gnu.org
> Resent-Sender: help-debbugs <at> gnu.org
> Cc: 55729 <at> debbugs.gnu.org
> From: Lars Ingebrigtsen <larsi <at> gnus.org>
> Date: Mon, 30 May 2022 17:09:58 +0200
> 
> Chen Bin <chenbin.sh <at> gmail.com> writes:
> 
> > Using same machine, same emacs setup, 28 is alwasy much slower than 27.
> 
> How much slower?
> 
> I tried your test, and the results were within a few percentages of each
> other in 27.1 and 28.1.

With a 3GB file being inserted non-literally, there could be factors
at work here that are entirely unrelated to processing speed.  The
implementation of string-match basically didn't change between Emacs
27 and Emacs 28, AFAICT.




This bug report was last modified 3 years and 48 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.