GNU bug report logs - #9470
24.0.50; Possible bidi-related slowness

Previous Next

Package: emacs;

Reported by: Lars Magne Ingebrigtsen <larsi <at> gnus.org>

Date: Sat, 10 Sep 2011 18:37:01 UTC

Severity: normal

Found in version 24.0.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 9470 <at> debbugs.gnu.org, larsi <at> gnus.org
Subject: bug#9470: 24.0.50; Possible bidi-related slowness
Date: Sun, 11 Sep 2011 01:18:17 -0400
> I don't see any easy way of gaining from more aggressive caching of
> this info, because the cache would need to be updated on every edit
> and on any redisplay, which would just move the slowdown from one
> group of commands to another.  Clever ideas are welcome.

I'd guess that a cache that stores (START . END) could help, where
"START is a position that starts a paragraph and that paragraph ends no
sooner than END".

This way when working within a very long paragraph, you only need to
look for a paragraph boundary between END and point and if there isn't
any, you can go straight to START without searching for it.


        Stefan




This bug report was last modified 13 years and 302 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.