-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf: use
getbufinfo()
over nvim_list_bufs()
The former is faster at filtering buffers than using the latter while filtering manually (in Lua). The former is faster both cold (first call), and after warmup, and overall is at least 10% quicker in this situation. This change improves the performance of the timer callback which goes through all buffers and saves those that are modified and meet the other criteria.
- Loading branch information
Showing
2 changed files
with
63 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters