From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Antipov Newsgroups: gmane.emacs.bugs Subject: bug#15555: Re: bug#15555: 24.3; Bidirectional display very slow with long lines Date: Wed, 19 Feb 2014 09:48:21 +0400 Message-ID: <530445A5.1030506@yandex.ru> References: <83wqlo461e.fsf@gnu.org> <8338obskk4.fsf@gnu.org> <83iox6qt1t.fsf@gnu.org> <53035588.3080705@dev.rtsoft.ru> <53036EBA.4060104@yandex.ru> <834n3w716u.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------060702010409060506010904" X-Trace: ger.gmane.org 1392788951 16041 80.91.229.3 (19 Feb 2014 05:49:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 19 Feb 2014 05:49:11 +0000 (UTC) Cc: 15555@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Feb 19 06:49:19 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 1WG022-0006Ea-CZ for geb-bug-gnu-emacs@m.gmane.org; Wed, 19 Feb 2014 06:49:18 +0100 Original-Received: from localhost ([::1]:56576 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WG022-00029C-1n for geb-bug-gnu-emacs@m.gmane.org; Wed, 19 Feb 2014 00:49:18 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50770) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WG01t-00028a-0x for bug-gnu-emacs@gnu.org; Wed, 19 Feb 2014 00:49:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WG01m-00015N-EF for bug-gnu-emacs@gnu.org; Wed, 19 Feb 2014 00:49:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58162) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WG01m-00015J-Ah for bug-gnu-emacs@gnu.org; Wed, 19 Feb 2014 00:49:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WG01m-00067N-2K for bug-gnu-emacs@gnu.org; Wed, 19 Feb 2014 00:49:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Antipov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 19 Feb 2014 05:49: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.139278891423473 (code B ref 15555); Wed, 19 Feb 2014 05:49:01 +0000 Original-Received: (at 15555) by debbugs.gnu.org; 19 Feb 2014 05:48:34 +0000 Original-Received: from localhost ([127.0.0.1]:59344 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WG01J-00066W-GZ for submit@debbugs.gnu.org; Wed, 19 Feb 2014 00:48:33 -0500 Original-Received: from forward5l.mail.yandex.net ([84.201.143.138]:38713) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WG01G-00066C-HI for 15555@debbugs.gnu.org; Wed, 19 Feb 2014 00:48:31 -0500 Original-Received: from smtp11.mail.yandex.net (smtp11.mail.yandex.net [95.108.130.67]) by forward5l.mail.yandex.net (Yandex) with ESMTP id E81D1C40E4D; Wed, 19 Feb 2014 09:48:21 +0400 (MSK) Original-Received: from smtp11.mail.yandex.net (localhost [127.0.0.1]) by smtp11.mail.yandex.net (Yandex) with ESMTP id 953407E0883; Wed, 19 Feb 2014 09:48:21 +0400 (MSK) Original-Received: from unknown (unknown [37.139.80.10]) by smtp11.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 4O2ujzWn3X-mLhq8Y0R; Wed, 19 Feb 2014 09:48:21 +0400 (using TLSv1 with cipher AES128-SHA (128/128 bits)) (Client certificate not present) X-Yandex-Uniq: a6b837c4-a214-494c-8bdc-79d4cde4a11f DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1392788901; bh=1HvdMn0PwQGi3mST0vPxpk3M/vKlZCAc0MhxCtrDgQw=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject: References:In-Reply-To:Content-Type; b=jPo0gLKJyKvcDMxvEXZoxjGvkiyKyKGjnKEdNlXBjD6K+pd1ulPb343ds/+kCSAmC hZiE8nRRb317d3/aI2AaGlmL+FR8Z5MpoRb45gEU/7hEVZEtJdh7ScANezGW3LfFte U/407dyB6S6E+1CB1VmSHK9OJj5qjUqSN+ZlQ8M0= Authentication-Results: smtp11.mail.yandex.net; dkim=pass header.i=@yandex.ru User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 In-Reply-To: <834n3w716u.fsf@gnu.org> 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:85872 Archived-At: This is a multi-part message in MIME format. --------------060702010409060506010904 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 02/18/2014 09:58 PM, Eli Zaretskii wrote: > Is this still the same use case with your bug15555 function and the > 4000.txt file? If not, please describe this use case. Yes. There is a simple patch to trace bidi_shelve_cache/bidi_unshelve_cache and two screencasts, with bug15555 over 2000.txt [1] and 4000.txt [2], respectively. [1] http://37.139.80.10/tmp/2000.mkv [2] http://37.139.80.10/tmp/4000.mkv Dmitry --------------060702010409060506010904 Content-Type: text/x-patch; name="trace_bug15555.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="trace_bug15555.patch" === modified file 'src/bidi.c' --- src/bidi.c 2014-01-01 17:44:48 +0000 +++ src/bidi.c 2014-02-19 04:07:08 +0000 @@ -62,6 +62,7 @@ #include "buffer.h" #include "dispextern.h" #include "region-cache.h" +#include "systime.h" static bool bidi_initialized = 0; @@ -668,6 +669,8 @@ + bidi_cache_idx * sizeof (struct bidi_it)); databuf = xmalloc (alloc); bidi_cache_total_alloc += alloc; + fprintf (stderr, "%s [%f]: alloc %"pI"d bytes -> %p\n", __func__, + timespectod (current_timespec ()), alloc, databuf); memcpy (databuf, &bidi_cache_idx, sizeof (bidi_cache_idx)); memcpy (databuf + sizeof (bidi_cache_idx), @@ -752,6 +755,8 @@ -= (bidi_shelve_header_size + bidi_cache_idx * sizeof (struct bidi_it)); } + fprintf (stderr, "%s [%f]: free %p\n", __func__, + timespectod (current_timespec ()), databuf); xfree (p); } --------------060702010409060506010904--