unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 9470@debbugs.gnu.org, Lars Magne Ingebrigtsen <larsi@gnus.org>
Subject: bug#9470: 24.0.50; Possible bidi-related slowness
Date: Sat, 10 Sep 2011 23:06:06 -0400	[thread overview]
Message-ID: <jwv7h5fu6gf.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <83k49gxgol.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 10 Sep 2011 23:53:30 +0300")

>> > The question is, what is "exciting", and what should we do when we
>> > "bail out"?
>> I defer to you what would be exciting.  :-)  I would have thought the
>> presence of no strongly R2L characters would be a measure of
>> non-excitingness...
> The long search is for the paragraph beginning.  Looking for R2L
> characters during that search will slow it even more.
> Anyway, I reopened the bug and will try to think of something.

I think Lars's point is a good one: maybe the paragraph direction can be
based on the predominance of L2R or R2L chars in the previous N chars,
in case the paragraph beginning is further than that (N should be large
enough to include all chars displayed).

Otherwise, I think the only way to make it faster is by caching the
result of the computation (I suspect you already do some caching, but
maybe we just need to be more aggressive).


        Stefan





  reply	other threads:[~2011-09-11  3:06 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-10 18:28 bug#9470: 24.0.50; Possible bidi-related slowness Lars Magne Ingebrigtsen
2011-09-10 18:45 ` Christoph Scholtes
2011-09-10 19:15   ` Eli Zaretskii
2011-09-10 20:28     ` Christoph Scholtes
2011-09-10 19:26 ` Eli Zaretskii
2011-09-10 19:25   ` Lars Magne Ingebrigtsen
2011-09-10 19:41     ` Eli Zaretskii
2011-09-10 19:41       ` Lars Magne Ingebrigtsen
2011-09-10 20:10         ` Eli Zaretskii
2011-09-10 20:11           ` Lars Magne Ingebrigtsen
2011-09-10 20:34             ` Eli Zaretskii
2011-09-10 20:42               ` Lars Magne Ingebrigtsen
2011-09-10 20:53                 ` Eli Zaretskii
2011-09-11  3:06                   ` Stefan Monnier [this message]
2011-09-11  4:59                     ` Eli Zaretskii
2011-09-11  5:18                       ` Stefan Monnier
2011-09-11  6:25                         ` Eli Zaretskii
2011-09-12  2:49                           ` Stefan Monnier
2011-09-12  7:21                             ` Eli Zaretskii
2011-09-13  2:21                               ` Stefan Monnier
2011-09-17 15:22                   ` Eli Zaretskii
2011-09-18  7:33                     ` Lars Magne Ingebrigtsen

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=jwv7h5fu6gf.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=9470@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=larsi@gnus.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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).