From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#23801: 25.0.95; term.el redraws extremely slow with bidi support enabled, and large buffers Date: Mon, 20 Jun 2016 17:28:43 +0300 Message-ID: <83d1nc7x44.fsf@gnu.org> References: <57666E36.6030809@orcon.net.nz> <83pord87rp.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1466433974 6029 80.91.229.3 (20 Jun 2016 14:46:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 20 Jun 2016 14:46:14 +0000 (UTC) Cc: 23801@debbugs.gnu.org To: Phil Sainty Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jun 20 16:46:01 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bF0SX-0001J1-SK for geb-bug-gnu-emacs@m.gmane.org; Mon, 20 Jun 2016 16:45:54 +0200 Original-Received: from localhost ([::1]:44078 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bF0SW-0001rf-NR for geb-bug-gnu-emacs@m.gmane.org; Mon, 20 Jun 2016 10:45:52 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54212) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bF0DJ-0000b4-6O for bug-gnu-emacs@gnu.org; Mon, 20 Jun 2016 10:30:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bF0DD-0003Qs-5E for bug-gnu-emacs@gnu.org; Mon, 20 Jun 2016 10:30:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:35469) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bF0DD-0003Qm-1r for bug-gnu-emacs@gnu.org; Mon, 20 Jun 2016 10:30:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bF0DC-00067K-RG for bug-gnu-emacs@gnu.org; Mon, 20 Jun 2016 10:30: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: Mon, 20 Jun 2016 14:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23801 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 23801-submit@debbugs.gnu.org id=B23801.146643298723457 (code B ref 23801); Mon, 20 Jun 2016 14:30:02 +0000 Original-Received: (at 23801) by debbugs.gnu.org; 20 Jun 2016 14:29:47 +0000 Original-Received: from localhost ([127.0.0.1]:47806 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bF0Cx-00066H-5R for submit@debbugs.gnu.org; Mon, 20 Jun 2016 10:29:47 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:34907) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bF0Cv-000662-G7 for 23801@debbugs.gnu.org; Mon, 20 Jun 2016 10:29:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bF0Cn-0003FY-NO for 23801@debbugs.gnu.org; Mon, 20 Jun 2016 10:29:40 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:47399) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bF0Cn-0003FN-Jn; Mon, 20 Jun 2016 10:29:37 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3418 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bF0Cl-0004WP-Np; Mon, 20 Jun 2016 10:29:36 -0400 In-reply-to: (message from Phil Sainty on Mon, 20 Jun 2016 11:41:17 +1200) 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: 208.118.235.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:119832 Archived-At: > Date: Mon, 20 Jun 2016 11:41:17 +1200 > From: Phil Sainty > Cc: 23801@debbugs.gnu.org > > > Can you reproduce the problem using 'ls'? > > No, the majority of commands do respond quickly. > > I suspect you'll need to do something which repaints the entire > terminal. I don't understand what that means. The output from "ls" repaints the entire terminal as well, as it produces 1500 lines, much more than is shown in the window. Perhaps you mean cursor motion commands, i.e. escape sequences that move the cursor up and down the screen, not just down? But if that is the reason, I'd expect to see its signs in the profile, which was not the case, I think. If you load term.el (not the .elc file!), and then run your experiments under the profiler (profiler-start), what does profiler-report produce? > Both previous examples are drawing a background colour (before > eventually > drawing some text over the top, which happens quickly). Perhaps there > are > a ton of escape sequences being processed for the colours? Probably, but I don't see how bidirectional display could slow down this processing, because AFAIU these escape sequences are converted to faces that are put on the displayed text, something that doesn't involve the bidirectional reordering for display at all. > I guess it simply depends on exactly what each application is > doing. GNU Midnight Commander is a file manager. I think "mc" > followed by "exit" should be a pretty easy/safe test for you to try? My problem is precisely that I cannot figure out what could the application be doing that would be so profoundly affected by bidirectional display. Does making the screen buffer (term-buffer-maximum-size) smaller help in any way?