Files
emacs/lisp/progmodes
Theodor Thornhill 08c80c45dd Don't use file-truepath in Eglot (bug#70036)
`file-truepath' is slow because of recursive calls and being implemented
in lisp.  It seems to not be needed in eglot, but it is used behind the
scenes in `find-buffer-visiting', thus appearing in profiles.  Moving
the implementation to a hash map will yield similar performance
benefits, but wouldn't require us to rewrite `file-truename' in C.

* lisp/progmodes/eglot.el (eglot-lsp-server): Convert 'managed-buffers'
to a hashmap.
(eglot-uri-to-path): Don't use file-truepath, as it is too slow to be
included in the hot path.
(eglot--on-shutdown): Use buffers from buffer map.
(eglot--managed-mode): Add buffer to map, rather than list. Also remove
it from the map on deactivation.
(eglot-handle-notification): Expose server and get buffer from the
buffer map.
2024-04-03 15:02:16 +02:00
..
2024-01-21 15:28:06 +01:00
2024-03-23 06:51:39 -04:00
2024-03-28 12:15:13 +02:00
2024-03-02 03:43:14 -05:00
2024-02-13 20:35:05 -05:00
2024-03-30 15:19:47 -07:00
2024-02-27 08:24:45 -05:00