perf: async cache initialization and remove deepcopy #8
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
barrettruth/blink-cmp-ghostty!8
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "perf/async-init"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
First completion request blocked the UI with a synchronous
vim.system():wait()call, and every subsequent key completion unnecessarily deep-copied the entire cache.Closes #4
Solution
Use
vim.systemwith an async callback to initialize the cache without blocking. Queue pending completion requests during loading and serve them once parsing finishes. Return cached keys directly instead of deep-copying.