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#15555: Re: bug#15555: 24.3; Bidirectional display very slow with long lines Date: Wed, 19 Feb 2014 19:43:08 +0200 Message-ID: <83bny35783.fsf@gnu.org> References: <83wqlo461e.fsf@gnu.org> <8338obskk4.fsf@gnu.org> <83iox6qt1t.fsf@gnu.org> <53035588.3080705@dev.rtsoft.ru> <53036EBA.4060104@yandex.ru> <83eh3075ih.fsf@gnu.org> <530399B6.1090709@yandex.ru> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1392834285 4279 80.91.229.3 (19 Feb 2014 18:24:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 19 Feb 2014 18:24:45 +0000 (UTC) Cc: 15555@debbugs.gnu.org To: Dmitry Antipov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Feb 19 19:24:52 2014 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 1WGBpD-0001Ro-UW for geb-bug-gnu-emacs@m.gmane.org; Wed, 19 Feb 2014 19:24:52 +0100 Original-Received: from localhost ([::1]:32964 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGBpD-0008PB-9u for geb-bug-gnu-emacs@m.gmane.org; Wed, 19 Feb 2014 13:24:51 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50611) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGBoW-0007VJ-Qk for bug-gnu-emacs@gnu.org; Wed, 19 Feb 2014 13:24:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WGBoO-0003tS-TH for bug-gnu-emacs@gnu.org; Wed, 19 Feb 2014 13:24:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59347) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGBoO-0003t1-QE for bug-gnu-emacs@gnu.org; Wed, 19 Feb 2014 13:24:00 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WGBBh-0003MB-R7 for bug-gnu-emacs@gnu.org; Wed, 19 Feb 2014 12:44:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 19 Feb 2014 17:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15555 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 15555-submit@debbugs.gnu.org id=B15555.139283178612810 (code B ref 15555); Wed, 19 Feb 2014 17:44:01 +0000 Original-Received: (at 15555) by debbugs.gnu.org; 19 Feb 2014 17:43:06 +0000 Original-Received: from localhost ([127.0.0.1]:60521 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WGBAn-0003KY-JY for submit@debbugs.gnu.org; Wed, 19 Feb 2014 12:43:06 -0500 Original-Received: from mtaout25.012.net.il ([80.179.55.181]:47630) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WGBAl-0003Jy-GR for 15555@debbugs.gnu.org; Wed, 19 Feb 2014 12:43:04 -0500 Original-Received: from conversion-daemon.mtaout25.012.net.il by mtaout25.012.net.il (HyperSendmail v2007.08) id <0N19005007NKQ300@mtaout25.012.net.il> for 15555@debbugs.gnu.org; Wed, 19 Feb 2014 19:41:42 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout25.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N190060Z7TIPD00@mtaout25.012.net.il>; Wed, 19 Feb 2014 19:41:42 +0200 (IST) In-reply-to: <530399B6.1090709@yandex.ru> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:85898 Archived-At: > Date: Tue, 18 Feb 2014 21:34:46 +0400 > From: Dmitry Antipov > CC: 15555@debbugs.gnu.org > > (gdb) b bidi.c:669 ;;; at xmalloc > Breakpoint 1 at 0x500890: file ../../trunk/src/bidi.c, line 669. > (gdb) b bidi.c:756 ;;; at xfree > Breakpoint 2 at 0x500b55: file ../../trunk/src/bidi.c, line 756. > (gdb) r -Q /tmp/4000.txt > > In 4000.txt, eval (goto-char 2769), then press up arrow ==> > > Breakpoint 1, bidi_shelve_cache () at ../../trunk/src/bidi.c:669 > 669 databuf = xmalloc (alloc); > (gdb) p alloc > $1 = 292820 ;;; ~290K That's 290K, not 1.5M. But even 1.5M should take about 100 usec to move with memcpy. So this is not a catastrophe. Of course, doing this in a never-ending loop is not nice, but that's not a slowdown, that's a bug.