Closed gbarta closed 1 year ago
Using: VIM - Vi IMproved 9.0 (2022 Jun 28, compiled Mar 23 2023 23:47:02) MS-Windows 64-bit GUI version with OLE support Included patches: 1-1425
I've noticed the 'vital' polyfill get_line_count at https://github.com/prabirshrestha/vim-lsp/blob/master/autoload/vital/_lsp/VS/Vim/Buffer.vim#L15
How about I use that instead so we don't need to restrict the version? Vim 8.1. is still in some supported LTS linux distros, e.g. Ubuntu focal.
That sounds good.
Merged. Thanks!
I had some stuttering in files with a lot of errors (the errors are due to misconfiguration).
Profiling showed that calls to getbufinfo(...).linecount were taking up a lot of the time in calls setting signs and virtual text:
Since the two slowest functions don't change the linecount, I changed them to call getbufinfo(...).linecount once rather than many times in a loop, which improved the performance making a noticable reduction in stutter: