]> code.delx.au - gnu-emacs/commit
Speed up redisplay of binary files with long series of nulls
authorEli Zaretskii <eliz@gnu.org>
Sun, 6 Mar 2016 16:14:46 +0000 (18:14 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sun, 6 Mar 2016 16:14:46 +0000 (18:14 +0200)
commitcc057e43130780e566f4b901a59a88edb3f5130d
tree085a5bb85eb5a019f8d17a837a6110ff58a3ab55
parente51b27ec2ce214ef3d8377a27ee9d857bcc66afc
Speed up redisplay of binary files with long series of nulls

* src/bidi.c (bidi_resolve_weak): Avoid entering a loop searching
for a character needed for resolving the type of a series of BN
and ET characters, as required by rule W5 of UAX#9, if the results
of the resolution are known in advance, because we are at level
zero, and the previous strong character was L.
(bidi_resolve_neutral): Partially resurrect the optimization for a
long series of control characters in an otherwise strictly L2R
text.
(bidi_level_of_next_char): Don't enter the loop that searches for
a paragraph separator if the current character is already at base
embedding level.  (Bug#22739)
src/bidi.c