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.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 59996 in the body.
You can then email your comments to 59996 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#59996
; Package
emacs
.
(Mon, 12 Dec 2022 09:54:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Ihor Radchenko <yantar92 <at> posteo.net>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Mon, 12 Dec 2022 09:54:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Hi,
I am still seeing the following clause in the 41.9 Overlays section of
Elisp manual:
The visual effect of an overlay is the same as of the corresponding
text property (*note Text Properties::). However, due to a different
implementation, overlays generally don’t scale well (many operations
take a time that is proportional to the number of overlays in the
buffer). If you need to affect the visual appearance of many portions
in the buffer, we recommend using text properties.
Should it be removed now, when overlays are equally performance with
text properties?
In GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version
3.24.35, cairo version 1.17.6) of 2022-12-07 built on localhost
Repository revision: f0e118d3f676afe39df29663399d4bbe8f53f208
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12101004
System Description: Gentoo Linux
--
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>
Reply sent
to
Eli Zaretskii <eliz <at> gnu.org>
:
You have taken responsibility.
(Mon, 12 Dec 2022 13:40:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Ihor Radchenko <yantar92 <at> posteo.net>
:
bug acknowledged by developer.
(Mon, 12 Dec 2022 13:40:02 GMT)
Full text and
rfc822 format available.
Message #10 received at 59996-done <at> debbugs.gnu.org (full text, mbox):
> From: Ihor Radchenko <yantar92 <at> posteo.net>
> Date: Mon, 12 Dec 2022 09:53:51 +0000
>
> I am still seeing the following clause in the 41.9 Overlays section of
> Elisp manual:
>
> The visual effect of an overlay is the same as of the corresponding
> text property (*note Text Properties::). However, due to a different
> implementation, overlays generally don’t scale well (many operations
> take a time that is proportional to the number of overlays in the
> buffer). If you need to affect the visual appearance of many portions
> in the buffer, we recommend using text properties.
>
> Should it be removed now, when overlays are equally performance with
> text properties?
Yes. I removed it.
I guess that entire section should be audited for inaccuracies now;
reviews and patches are welcome.
Thanks.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#59996
; Package
emacs
.
(Tue, 13 Dec 2022 10:43:02 GMT)
Full text and
rfc822 format available.
Message #13 received at 59996-done <at> debbugs.gnu.org (full text, mbox):
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>
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#59996
; Package
emacs
.
(Wed, 14 Dec 2022 18:16:02 GMT)
Full text and
rfc822 format available.
Message #16 received at 59996-done <at> debbugs.gnu.org (full text, mbox):
> From: Ihor Radchenko <yantar92 <at> posteo.net>
> Cc: 59996-done <at> debbugs.gnu.org
> Date: Tue, 13 Dec 2022 10:42:17 +0000
>
> 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.
Fixed, thanks.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Thu, 12 Jan 2023 12:24:09 GMT)
Full text and
rfc822 format available.
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.