GNU bug report logs -
#59996
30.0.50; Overlays section of Elisp manual still states that overlays scale linearly
Previous Next
Reported by: Ihor Radchenko <yantar92 <at> posteo.net>
Date: Mon, 12 Dec 2022 09:54:02 UTC
Severity: normal
Found in version 30.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
Eli Zaretskii <eliz <at> gnu.org> writes:
> I guess that entire section should be audited for inaccuracies now;
> reviews and patches are welcome.
Another part that requires update:
Emacs stores the overlays of each buffer in two lists, divided around
an arbitrary center position. One list extends backwards through the
buffer from that center position, and the other extends forwards from
that center position. The center position can be anywhere in the
buffer.
-- Function: overlay-recenter pos
This function recenters the overlays of the current buffer around
position POS. That makes overlay lookup faster for positions near
POS, but slower for positions far away from POS.
A loop that scans the buffer forwards, creating overlays, can run
faster if you do ‘(overlay-recenter (point-max))’ first.
‘after-string’/‘before-string’ property description might mention that
string are not displayed if the end/beginning of the overlay is not
displayed for some reason.
Also, it might be worth highlighting that unlike text properties,
overlays advance regardless whether insert or insert-and-inherit is used
to insert the buffer text.
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
This bug report was last modified 2 years and 153 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.