diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-07-12 10:38:53 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-12 10:38:53 +0800 |
commit | ef94fb69c65bc2e4c67826de6373c202b55b7d5a (patch) | |
tree | 8809b5a23866e60b1220e7a187c41f2119361bbf /runtime/lua/vim/lsp/buf.lua | |
parent | bf52fb7193ca08ceca292cfca9156380a6661979 (diff) | |
download | rneovim-ef94fb69c65bc2e4c67826de6373c202b55b7d5a.tar.gz rneovim-ef94fb69c65bc2e4c67826de6373c202b55b7d5a.tar.bz2 rneovim-ef94fb69c65bc2e4c67826de6373c202b55b7d5a.zip |
perf(extmarks): don't handle inline virt_text if there is none (#24322)
Extreme testcase:
```lua
vim.fn.setline(1, 'foobar')
local ns = vim.api.nvim_create_namespace('')
for _ = 1, 100000 do
vim.api.nvim_buf_set_extmark(0, ns, 0, 3, {})
end
local start_time = vim.loop.hrtime()
vim.fn.virtcol('$')
local stop_time = vim.loop.hrtime()
print(stop_time - start_time)
```
Before #20130: 31696
On master branch: 26191344
After this PR: 37692
Diffstat (limited to 'runtime/lua/vim/lsp/buf.lua')
0 files changed, 0 insertions, 0 deletions