aboutsummaryrefslogtreecommitdiff
path: root/runtime/ftplugin/python.vim
diff options
context:
space:
mode:
authorDmytro Meleshko <dmytro.meleshko@gmail.com>2026-06-25 17:46:26 +0200
committerGitHub <noreply@github.com>2026-06-25 11:46:26 -0400
commitbcfc2037efbd334331ebe6c89361c6d78d8003c6 (patch)
treee08f23dae9090ee777b8e411a260be982db6b624 /runtime/ftplugin/python.vim
parent9afa8477b3a3b5b298e0042e59e391357dbe5c5c (diff)
downloadrneovim-bcfc2037efbd334331ebe6c89361c6d78d8003c6.tar.gz
rneovim-bcfc2037efbd334331ebe6c89361c6d78d8003c6.tar.bz2
rneovim-bcfc2037efbd334331ebe6c89361c6d78d8003c6.zip
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.
Diffstat (limited to 'runtime/ftplugin/python.vim')
0 files changed, 0 insertions, 0 deletions