aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/treesitter/query.lua
diff options
context:
space:
mode:
authorii14 <59243201+ii14@users.noreply.github.com>2023-04-27 19:25:08 +0200
committerGitHub <noreply@github.com>2023-04-27 19:25:08 +0200
commit1cb60405548e79f1ec63921540e1c3ebb3ddcc01 (patch)
treebf0706152d87cacb506868ccb8074381452f1410 /runtime/lua/vim/treesitter/query.lua
parenteb4676c67f5dd54bcda473783315901a3444b40b (diff)
downloadrneovim-1cb60405548e79f1ec63921540e1c3ebb3ddcc01.tar.gz
rneovim-1cb60405548e79f1ec63921540e1c3ebb3ddcc01.tar.bz2
rneovim-1cb60405548e79f1ec63921540e1c3ebb3ddcc01.zip
perf(events): store autocommands in flat vectors (#23256)
Instead of nested linked lists, store autocommands in a flat, contiguous kvec_t, with one kvec_t per event type. Previously patterns were stored in each node of the outer linked list, so they can be matched only once on repeating patterns. They are now reference counted and referenced in each autocommand, and matching is skipped if the pattern repeats. Speeds up creation and deletion, execution is not affected. Co-authored-by: ii14 <ii14@users.noreply.github.com>
Diffstat (limited to 'runtime/lua/vim/treesitter/query.lua')
0 files changed, 0 insertions, 0 deletions