]> git.eshelyaron.com Git - emacs.git/commit
Improve 'tab-line-tabs-fixed-window-buffers' sorting performance
authorEval EXEC <execvy@gmail.com>
Fri, 5 Jul 2024 10:53:36 +0000 (18:53 +0800)
committerEshel Yaron <me@eshelyaron.com>
Mon, 8 Jul 2024 20:58:22 +0000 (22:58 +0200)
commitecf88e6a1c903796ce397be38990e10813fd506d
tree179d01028f172d9a696a8bd5bee3dee5b1869a25
parent793047d88a024d024fed505bb853fb7a4a851a09
Improve 'tab-line-tabs-fixed-window-buffers' sorting performance

* lsp/tab-line.el (tab-line-tabs-fixed-window-buffers): Enhance
'tab-line-tabs-fixed-window-buffers' performance by optimizing buffer
sorting mechanism.  Replace inefficient 'seq-position' calls with a hash
table to cache buffer positions, significantly improving speed when
handling large buffer lists (bug#71958).

Copyright-paperwork-exempt: yes
(cherry picked from commit fffab032b05d5dcb72d6729321739ca814c54a28)
lisp/tab-line.el