]> git.eshelyaron.com Git - emacs.git/commitdiff
* etc/TODO: Entry about markers being non-scalable. (Bug#49127)
authorEli Zaretskii <eliz@gnu.org>
Sat, 21 Aug 2021 06:33:34 +0000 (09:33 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sat, 21 Aug 2021 06:33:34 +0000 (09:33 +0300)
etc/TODO

index 1d6824c470a178b56a2b2c52cdbb38b8f7e0bc82..e199e6b02d6585150981ad0adbae657683e5823f 100644 (file)
--- a/etc/TODO
+++ b/etc/TODO
@@ -1538,6 +1538,14 @@ cannot represent in Unicode.
 
 *** Performance
 
+**** Make the implementation of markers more eifficient
+Markers are implemented as a non-sorted singly linked list of markers.
+This makes them scale badly when thousands of markers are created in a
+buffer for some purpose, because some low-level primitives in Emacs
+traverse the markers' list (e.g., when converting between character
+and byte positions), and also because searching for a marker (e.g.,
+with 'buffer-has-markers-at') becomes very slow.
+
 **** Explore whether overlay-recenter can cure overlays performance problems
 
 **** Cache schemas.  Need to have list of files and mtimes