Dmytro Meleshko
fa365cedad
perf(treesitter): reduce memory usage of _select.lua #40409
...
Problem: The table `history` in treesitter/_select.lua stores references
to previously selected TSNodes, but a TSNode needs to keep its
whole TSTree alive in memory, which may be kept alive even
after closing the buffer to which this history corresponds.
Solution: Store just the bits of information from the TSNode we need to
go back in selection history (the range and ID), without
referencing the TSNode itself.
(cherry picked from commit bcfc2037ef )
2026-06-25 16:35:51 +00:00
..
2026-05-17 18:24:50 +02:00
2025-05-06 05:15:31 -07:00
2026-05-17 18:24:50 +02:00
2026-03-13 20:32:01 +01:00
2026-05-19 01:08:18 +00:00
2026-03-13 20:32:01 +01:00
2026-04-15 19:46:07 +00:00
2026-06-25 13:43:40 +00:00
2025-08-17 20:40:28 -07:00
2026-04-22 09:24:45 +00:00
2026-03-22 09:20:04 -04:00
2026-06-25 16:35:51 +00:00
2026-03-12 11:12:56 +01:00
2025-12-16 13:22:05 -05:00
2026-03-13 15:57:36 -04:00
2025-12-30 01:44:52 -05:00
2026-04-30 13:09:55 +00:00
2026-04-25 13:51:22 -04:00
2026-02-23 17:33:13 -05:00
2026-05-07 12:03:02 +02:00
2025-06-06 15:36:48 +01:00
2026-04-30 13:09:55 +00:00
2026-05-29 18:56:59 +00:00
2026-02-12 07:15:20 -05:00
2026-01-12 10:58:01 -08:00
2026-03-28 09:22:22 -04:00
2026-06-06 10:52:40 +00:00
2026-01-09 10:07:15 +01:00
2026-03-11 18:00:18 +01:00
2026-03-23 08:00:53 -04:00
2026-03-12 11:04:05 -04:00
2026-06-20 16:19:02 -04:00
2026-04-05 19:24:57 +00:00
2026-04-23 15:55:14 +00:00
2026-05-07 05:16:53 -04:00
2024-02-03 16:53:41 +01:00
2026-05-08 10:17:30 +00:00
2025-02-10 03:04:01 -08:00
2026-05-20 20:00:45 +00:00
2026-04-30 13:09:55 +00:00
2025-07-12 20:54:22 -07:00
2026-05-29 15:56:13 +00:00
2026-03-23 10:14:48 -04:00
2026-05-20 08:44:03 +00:00
2026-04-30 13:09:55 +00:00
2026-04-08 23:26:03 +02:00