all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Dmitry Antipov <dmantipov@yandex.ru>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 15555@debbugs.gnu.org
Subject: bug#15555: Re: bug#15555: 24.3; Bidirectional display very slow with long lines
Date: Wed, 19 Feb 2014 09:48:21 +0400	[thread overview]
Message-ID: <530445A5.1030506@yandex.ru> (raw)
In-Reply-To: <834n3w716u.fsf@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 420 bytes --]

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


[-- Attachment #2: trace_bug15555.patch --]
[-- Type: text/x-patch, Size: 882 bytes --]

=== 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);
     }


  reply	other threads:[~2014-02-19  5:48 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-07 20:05 bug#15555: 24.3; Bidirectional display very slow with long lines Jerome L Quinn
2013-10-08  6:42 ` Eli Zaretskii
2013-10-08 15:39   ` Jerome L Quinn
2013-10-08 18:07     ` Eli Zaretskii
2013-10-09 12:26       ` Stefan Monnier
2013-10-09 16:59         ` Eli Zaretskii
2013-10-09 18:04           ` Jerome L Quinn
2016-01-26  5:13             ` bug#3219: " Andrew Hyatt
2016-01-26 14:41               ` Eli Zaretskii
2014-02-18 12:43           ` bug#15555: " Dmitry Antipov
2014-02-18 14:01             ` Dmitry Antipov
2014-02-18 16:21               ` Eli Zaretskii
2014-02-18 14:04             ` bug#15555: " Stefan Monnier
2014-02-18 14:31               ` Dmitry Antipov
2014-02-18 16:24                 ` Eli Zaretskii
2014-02-18 17:34                   ` Dmitry Antipov
2014-02-18 17:47                     ` Eli Zaretskii
2014-02-19 17:43                     ` Eli Zaretskii
2014-02-20  7:32                       ` Dmitry Antipov
2014-02-20 17:45                         ` Eli Zaretskii
2014-02-21  5:32                           ` Dmitry Antipov
2014-02-18 17:58                 ` Eli Zaretskii
2014-02-19  5:48                   ` Dmitry Antipov [this message]
2014-02-19 17:36                     ` Eli Zaretskii
2014-02-20 17:44                 ` bug#15555: " Eli Zaretskii
2014-02-18 17:44               ` Eli Zaretskii
2014-02-18 17:42             ` Eli Zaretskii
2014-02-19 10:49               ` bug#15555: " Dmitry Antipov
2014-02-19 17:39                 ` Eli Zaretskii
2014-02-20  7:21                   ` Dmitry Antipov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=530445A5.1030506@yandex.ru \
    --to=dmantipov@yandex.ru \
    --cc=15555@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.