[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#26051: 25.1; overlays may make emacs very slow

From: Eli Zaretskii
Subject: bug#26051: 25.1; overlays may make emacs very slow
Date: Sun, 12 Mar 2017 17:47:47 +0200

> From: ynyaaa@gmail.com
> Cc: 26051@debbugs.gnu.org
> Date: Sun, 12 Mar 2017 10:44:21 +0900
> >>   "@%d\n"
> >>   "?%d\n"
> >>   "\u00E1%d\n" ;; LATIN SMALL LETTER A WITH ACUTE
> >>   "\u3042%d\n" ;; HIRAGANA LETTER A
> >>   "\u4E00%d\n" ;; CJK IDEOGRAPH-4E00
> >
> > What I see here, with all of the above except the first two, is that
> > what takes a long time is for the code to run; once I see "Done" in
> > the echo area, redisplay takes less than a second.
> Why is it take long time to use multibyte characters?
> 2 seconds and 2 minutes are very different.

My guess is because we need to compute the byte position of the
markers that store the overlay's beginning and end.  But that's just a

Btw, your original recipe will produce a much faster redisplay if you
set bidi-paragraph-direction of the buffer to left-to-right, instead
of leaving it at its default nil value.  Sorry I didn't mention this

reply via email to

[Prev in Thread] Current Thread [Next in Thread]