From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Anton Tayanovskyy Newsgroups: gmane.emacs.bugs Subject: bug#47589: not reproducing on emacs 28 Date: Fri, 11 Jun 2021 23:05:39 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000d151ba05c488e6e2" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23734"; mail-complaints-to="usenet@ciao.gmane.io" To: 47589@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jun 12 06:25:30 2021 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 1lrvD7-00065x-W8 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 12 Jun 2021 06:25:30 +0200 Original-Received: from localhost ([::1]:42140 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lrvD6-0001oo-Fr for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 12 Jun 2021 00:25:29 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60848) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lrvBi-0000RY-MJ for bug-gnu-emacs@gnu.org; Sat, 12 Jun 2021 00:24:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56870) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lrvBi-0003N7-Ds for bug-gnu-emacs@gnu.org; Sat, 12 Jun 2021 00:24:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lrvBi-00035Z-5c for bug-gnu-emacs@gnu.org; Sat, 12 Jun 2021 00:24:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Anton Tayanovskyy Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 12 Jun 2021 04:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47589 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch moreinfo Original-Received: via spool by 47589-submit@debbugs.gnu.org id=B47589.162347179311819 (code B ref 47589); Sat, 12 Jun 2021 04:24:02 +0000 Original-Received: (at 47589) by debbugs.gnu.org; 12 Jun 2021 04:23:13 +0000 Original-Received: from localhost ([127.0.0.1]:40183 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lrvAr-00034U-Gb for submit@debbugs.gnu.org; Sat, 12 Jun 2021 00:23:13 -0400 Original-Received: from mail-wr1-f51.google.com ([209.85.221.51]:38420) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lrty8-0001Hu-TG for 47589@debbugs.gnu.org; Fri, 11 Jun 2021 23:05:58 -0400 Original-Received: by mail-wr1-f51.google.com with SMTP id c9so7917757wrt.5 for <47589@debbugs.gnu.org>; Fri, 11 Jun 2021 20:05:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=5jJrNqHgDyM5RslqFx042/VCyW7m4A0niotvq+gqqeA=; b=Hj1EmplPZPssij2IaMxwiMrTEOr/VGwgHDi+WheePZXKlTv4LyA9MRtLW9tHTdLTZI xzuJ9Wx9FTc3/ZPOO3pBJwLSPwCtUydzlqD3JqJGzi1fjPLNaUzgMWp6k8bYI5szz4Ys ZdeXQEWHIr+sDNiNojc56iCo6HRzouhsnmkB6NxwiQ5nIKl532T7ssiZItUw1l27bZWc 6PG3QSQ5u+FPHwKQRMsNXKCYdg0dKgaGVtvSLg7fn550v3QWEUmPHtfUUUeAmNWEwO3T 1g1mdCNUiz87RWNSmo6zQ5XZNB73kjePJ5mrqFMwRQ6jOiv2C3VzJ2jYKT6XI5EtF2BU JhnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=5jJrNqHgDyM5RslqFx042/VCyW7m4A0niotvq+gqqeA=; b=uDxaoH/iiRf/xSrkw+XbrEPWD6rtpSnZYr7Noz/S1P+LX88ZSChHEz1nuuRhSFqZNe 7PXxSyyCRWWsxiS/8ZdRY8LfZw7JQumjCtlZaNXNtP6n9a5TyR77hn9dv55wE3l/Oce9 vRD+QtrHVip4CFZicHTEg+5jYEUaDKGX4R16+Voga5A/rKuZnM9M/HHh/Cav6u3MGnAe A5keXDtB84c3ZIze/973y+kTuXnnurDCOU6Hiz7MhAYTNhCKFCX8qOdlEB8s5nEM4ZUs 5cg5JPdhayaAGvVsEfi+h3Mi99rOSxfDRmSvwsP0cWrPmuBu/jA5k3as6unAu19hMdEh QcTg== X-Gm-Message-State: AOAM531fduWmQmy0pgGZTLiKT7mXEK0uFZWlhxYWaS4WhjbqWmQ5UgEi wJ5WulPtsZuVSwyiw0TzDajJ3A8eFg7jdOowbLaGQwdOoVM= X-Google-Smtp-Source: ABdhPJywHA62tFrh+HV/LnnT8sZfMi026dIxaYOfAfG2KUFfNaVTrn8KqvwcbJkrWpSOOo/cCTu39XeQHM4vIuHdDwg= X-Received: by 2002:a05:6000:10cc:: with SMTP id b12mr6876118wrx.54.1623467150626; Fri, 11 Jun 2021 20:05:50 -0700 (PDT) X-Mailman-Approved-At: Sat, 12 Jun 2021 00:23:08 -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" Xref: news.gmane.io gmane.emacs.bugs:208364 Archived-At: --000000000000d151ba05c488e6e2 Content-Type: text/plain; charset="UTF-8" Thanks for looking into it. I have tried to reproduce the slowdown on Ubuntu with Emacs 28 and 27.2 and compared against my current patched 27.1 Emacs. The conclusion is that something improved in a recent version of Emacs and the patch is not moving the needle on this. There is still a super-liner cost somewhere. But as a user I only hit this when accidentally displaying a large file, and current behavior is interactive enough that I can kill the process running in the shell. Once I get a chance I would also like to try on Mac OS X where the problem was more pronounced. Thanks, Anton |--------------------+---------------------------------------+----------------| | GNU Emacs 27.2 | time python3 -c 'print("x"*1024*256)' | real 0m20.805s | | GNU Emacs 28.0.50 | time python3 -c 'print("x"*1024*32)' | real 0m0.315s | | GNU Emacs 28.0.50 | time python3 -c 'print("x"*1024*64)' | real 0m1.151s | | GNU Emacs 28.0.50 | time python3 -c 'print("x"*1024*128)' | real 0m6.168s | | GNU Emacs 28.0.50 | time python3 -c 'print("x"*1024*256)' | real 0m22.153s | | GNU Emacs 27.1* | time python3 -c 'print("x"*1024*32)' | real 0m0.237s | | GNU Emacs 27.1* | time python3 -c 'print("x"*1024*64)' | real 0m1.108s | | GNU Emacs 27.1* | time python3 -c 'print("x"*1024*128)' | real 0m5.172s | | GNU Emacs 27.1* | time python3 -c 'print("x"*1024*256)' | real 0m24.369s | | GNU Emacs 28.0.50* | time python3 -c 'print("x"*1024*32)' | real 0m0.234s | | GNU Emacs 28.0.50* | time python3 -c 'print("x"*1024*64)' | real 0m0.978s | | GNU Emacs 28.0.50* | time python3 -c 'print("x"*1024*128)' | real 0m4.716s | | GNU Emacs 28.0.50* | time python3 -c 'print("x"*1024*256)' | real 0m19.047s | --000000000000d151ba05c488e6e2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks for looking into it.

I hav= e tried to reproduce the slowdown on Ubuntu with Emacs 28 and 27.2 and comp= ared against my current patched 27.1 Emacs. The conclusion is that somethin= g improved in a recent version of Emacs and the patch is not moving the nee= dle on this.

There is still a super-liner cost somewhere= . But as a user I only hit this when accidentally displaying a large file, = and current behavior is interactive enough that I can kill the process runn= ing in the shell.

Once I get a chance I would also= like to try on Mac OS X where the problem was more pronounced.
<= br>
Thanks,

Anton

|--------------------+------------------------------------= ---+----------------|
| GNU Emacs 27.2 =C2=A0 =C2=A0 | time python3 -c &= #39;print("x"*1024*256)' | real 0m20.805s |
| GNU Emacs 28= .0.50 =C2=A0| time python3 -c 'print("x"*1024*32)' =C2=A0= | real 0m0.315s =C2=A0|
| GNU Emacs 28.0.50 =C2=A0| time python3 -c '= ;print("x"*1024*64)' =C2=A0| real 0m1.151s =C2=A0|
| GNU E= macs 28.0.50 =C2=A0| time python3 -c 'print("x"*1024*128)'= ; | real 0m6.168s =C2=A0|
| GNU Emacs 28.0.50 =C2=A0| time python3 -c &#= 39;print("x"*1024*256)' | real 0m22.153s |
| GNU Emacs 27.= 1* =C2=A0 =C2=A0| time python3 -c 'print("x"*1024*32)' = =C2=A0| real 0m0.237s =C2=A0|
| GNU Emacs 27.1* =C2=A0 =C2=A0| time pyth= on3 -c 'print("x"*1024*64)' =C2=A0| real 0m1.108s =C2=A0|=
| GNU Emacs 27.1* =C2=A0 =C2=A0| time python3 -c 'print("x&quo= t;*1024*128)' | real 0m5.172s =C2=A0|
| GNU Emacs 27.1* =C2=A0 =C2= =A0| time python3 -c 'print("x"*1024*256)' | real 0m24.36= 9s |
| GNU Emacs 28.0.50* | time python3 -c 'print("x"*102= 4*32)' =C2=A0| real 0m0.234s =C2=A0|
| GNU Emacs 28.0.50* | time pyt= hon3 -c 'print("x"*1024*64)' =C2=A0| real 0m0.978s =C2=A0= |
| GNU Emacs 28.0.50* | time python3 -c 'print("x"*1024*1= 28)' | real 0m4.716s =C2=A0|
| GNU Emacs 28.0.50* | time python3 -c = 'print("x"*1024*256)' | real 0m19.047s |

--000000000000d151ba05c488e6e2--