mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 03:05:11 -07:00
1cb6040554
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> |
||
---|---|---|
.. | ||
autocmd_spec.lua | ||
bench_regexp_spec.lua | ||
preload.lua | ||
treesitter_spec.lua |