From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#38407: 27.0.50; infinite loop with display of large file without newlines Date: Sun, 01 Dec 2019 19:45:11 +0200 Message-ID: <83lfrwlz2w.fsf@gnu.org> References: <39c498717f8958e7fdc408d4da51d378@webmail.orcon.net.nz> <24031.28277.201123.531348@cochabamba.vanoostrum.org> <83r21sowx1.fsf@gnu.org> <24032.4698.256238.87458@cochabamba.vanoostrum.org> <83k17jq1ch.fsf@gnu.org> <24032.17845.921546.629745@cochabamba.vanoostrum.org> <83fti7p349.fsf@gnu.org> <4B1ABCA7-A69C-4251-8EBD-A11654A92642@vanoostrum.org> <83v9r2o4z9.fsf@gnu.org> <24035.27244.755074.180653@cochabamba.vanoostrum.org> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="114928"; mail-complaints-to="usenet@blaine.gmane.org" Cc: pieter@vanoostrum.org, 38407@debbugs.gnu.org To: Phil Sainty Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Dec 01 18:46:11 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1ibTIR-000Tnb-0i for geb-bug-gnu-emacs@m.gmane.org; Sun, 01 Dec 2019 18:46:11 +0100 Original-Received: from localhost ([::1]:53748 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ibTIP-0006pT-Rl for geb-bug-gnu-emacs@m.gmane.org; Sun, 01 Dec 2019 12:46:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49626) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ibTIJ-0006l6-Fc for bug-gnu-emacs@gnu.org; Sun, 01 Dec 2019 12:46:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ibTII-0002Um-Cx for bug-gnu-emacs@gnu.org; Sun, 01 Dec 2019 12:46:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58921) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ibTII-0002Ua-9Q for bug-gnu-emacs@gnu.org; Sun, 01 Dec 2019 12:46:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ibTII-0000Xp-9J for bug-gnu-emacs@gnu.org; Sun, 01 Dec 2019 12:46:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 01 Dec 2019 17:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38407 X-GNU-PR-Package: emacs Original-Received: via spool by 38407-submit@debbugs.gnu.org id=B38407.15752223462068 (code B ref 38407); Sun, 01 Dec 2019 17:46:02 +0000 Original-Received: (at 38407) by debbugs.gnu.org; 1 Dec 2019 17:45:46 +0000 Original-Received: from localhost ([127.0.0.1]:36661 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ibTI2-0000XI-FM for submit@debbugs.gnu.org; Sun, 01 Dec 2019 12:45:46 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:40486) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ibTI1-0000X6-FI for 38407@debbugs.gnu.org; Sun, 01 Dec 2019 12:45:45 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:51449) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ibTHv-0002Ac-6k; Sun, 01 Dec 2019 12:45:39 -0500 Original-Received: from [176.228.60.248] (port=1294 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ibTHi-0000kb-MF; Sun, 01 Dec 2019 12:45:32 -0500 In-reply-to: (message from Phil Sainty on Sun, 1 Dec 2019 23:37:46 +1300) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:172721 Archived-At: > Cc: Eli Zaretskii , 38407@debbugs.gnu.org > From: Phil Sainty > Date: Sun, 1 Dec 2019 23:37:46 +1300 > > On 1/12/19 8:23 PM, Pieter van Oostrum wrote: > > Here it is, compressed. I am loading the uncompressed file, > > of course. > > Without bidi-inhibit-bpa, visual-line-mode is certainly brutal > with this file (I've been waiting several minutes for Emacs 27 > to respond to `end-of-buffer'). 8.5 minutes here, with an unoptimized build. > However, for me, bidi-inhibit-bpa comprehensively deals to that. Down to 1 min here. One other observation is that the first time you do that in a session after visiting the file, it takes much longer than the subsequent times. Here, the second M-> takes 5 min with bidi-inhibit-bpa nil and just 17 sec with it non-nil. So I think some of this time is spent doing something we do once, maybe loading fonts or something (this file has a lot of different scripts). It would be interesting to run perf and compare its output with bidi-inhibit-bpa nil and non-nil. Maybe the performance hit due to visual-line-mode is because of some code that could be optimized, or maybe (gasp!) even a bug. The difference between the first and subsequent moves is also interesting to time. I don't have access to a GUI system where I can run perf, so could someone please do these measurements and post the resulting profiles?