aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/provider/python.lua
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2026-02-04 11:34:40 +0100
committerbfredl <bjorn.linse@gmail.com>2026-02-25 09:39:54 +0100
commit3aa04f7ee4b016924b6b178c74667b9c6bb48a81 (patch)
treee06aa1db301335610b1f55ed038fd3af1a4167ef /runtime/lua/vim/provider/python.lua
parentcf874cee330db7996e879891b7be0ffa3bd6a535 (diff)
downloadrneovim-3aa04f7ee4b016924b6b178c74667b9c6bb48a81.tar.gz
rneovim-3aa04f7ee4b016924b6b178c74667b9c6bb48a81.tar.bz2
rneovim-3aa04f7ee4b016924b6b178c74667b9c6bb48a81.zip
perf(runtime): hardware accelerated "packadd opt_package"
fixes #37586 when doing `packadd mypackage` up to two exact paths are added to &rtp. Instead of recalculating runtime_search_path from scratch, we can "just" splice these two paths in This is simple in theory, but get complicated in practice as "after" dirs do exist and need some wrangling. Echasnovski did some benchmarking, to show that this reduces overhead of a init.lua configuration style where separate `packadd!` calls are used spread out during the config. In addition, "batched" addition (either using "start" packages or packadd! a lot of opt packages at once) does not regress. A theoretical simplification could be to NEVER explicitly add "after" dirs to &rtp, but implicitly add all existing "after" dirs in reverse order when calculating the effective run time path. This might be tricky to do without breaking 12 tpope plugins again tho. We might also instead consider solutions where &rtp remains fully expanded but no longer is the main source of truth. But this is all post 0.12 work. This PR is an alright stopgap to make 0.12 fully support intended use cases of vim.pack.add() .
Diffstat (limited to 'runtime/lua/vim/provider/python.lua')
0 files changed, 0 insertions, 0 deletions