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#55729: 27.1; Emacs 28.1 `string-match' is five times slower than Emacs 27.1 Date: Mon, 30 May 2022 19:03:28 +0300 Message-ID: <838rqjj9db.fsf@gnu.org> References: <874k17cc4i.fsf@gmail.com> <87k0a3vyyh.fsf@gnus.org> <83bkvfj9ly.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18084"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 55729@debbugs.gnu.org To: larsi@gnus.org, chenbin.sh@gmail.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 30 18:05:55 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 1nvhtx-0004Vu-Vb for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 30 May 2022 18:05:54 +0200 Original-Received: from localhost ([::1]:37664 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nvhtw-0000kP-OK for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 30 May 2022 12:05:52 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37904) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nvhsA-0006J4-A1 for bug-gnu-emacs@gnu.org; Mon, 30 May 2022 12:04:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51954) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nvhsA-0006Z4-0y for bug-gnu-emacs@gnu.org; Mon, 30 May 2022 12:04:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nvhs9-0005fx-Rm for bug-gnu-emacs@gnu.org; Mon, 30 May 2022 12:04:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 30 May 2022 16:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55729 X-GNU-PR-Package: emacs Original-Received: via spool by 55729-submit@debbugs.gnu.org id=B55729.165392661421749 (code B ref 55729); Mon, 30 May 2022 16:04:01 +0000 Original-Received: (at 55729) by debbugs.gnu.org; 30 May 2022 16:03:34 +0000 Original-Received: from localhost ([127.0.0.1]:45851 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nvhrh-0005ei-Tb for submit@debbugs.gnu.org; Mon, 30 May 2022 12:03:34 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:44504) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nvhre-0005eG-Qh for 55729@debbugs.gnu.org; Mon, 30 May 2022 12:03:32 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:41164) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nvhrZ-0006XL-Fu; Mon, 30 May 2022 12:03:25 -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=BUElB+oe4sI5GlnX+WzYqkN/D8McJ6RH9h4YGsHjcdM=; b=AJH94N5XmWzQ piIWdENcmMaZzeqOurXdGtMlM9ObaY8V5d7cb7bMRRxYcpbkBP9HXnmxXcD9q0tJFjgMeh/eNHkCs xOTdWHMCnocSw3m0xyDF4yE6II14Y4QN8ODP+61QhsjaS0ro0NbmpDUz+/vxbhoxPn23AytHdXLT7 7ENpJIdgGecFCcP3i4Rs1XiAIy28nWWXVmqzgz2g0FFMMwMyB3nB2rewYR2O66lTa7XoEOyPyXD0Q xbdXnAokNEofBoP825a9lwMBXuOR+b1lko/27WvoCkHVy3cS6mGEn+TW/KKskaSpgV8kyTkQiaX+k vyAxXv3ofSHrusvCUZrdtw==; Original-Received: from [87.69.77.57] (port=2263 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 1nvhrY-00085k-S5; Mon, 30 May 2022 12:03:25 -0400 In-Reply-To: <83bkvfj9ly.fsf@gnu.org> (message from Eli Zaretskii on Mon, 30 May 2022 18:58:17 +0300) 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" Xref: news.gmane.io gmane.emacs.bugs:233390 Archived-At: > Cc: chenbin.sh@gmail.com, 55729@debbugs.gnu.org > Date: Mon, 30 May 2022 18:58:17 +0300 > From: Eli Zaretskii > > > 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. Here's one random thought: were both Emacs 27 and Emacs 28 compiled with the same compiler version, and do they both use the same version of the Standard C Library?