perf(picker.matcher): yield every 1ms to prevent ui locking in large repos

This commit is contained in:
Folke Lemaitre 2025-01-15 17:07:03 +01:00
parent 92c2a00672
commit 19979c88f3
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -13,7 +13,7 @@ M.__index = M
M.DEFAULT_SCORE = 1000
M.INVERSE_SCORE = 1000
local YIELD_MATCH = 5 -- ms
local YIELD_MATCH = 1 -- ms
---@class snacks.picker.matcher.Mods
---@field pattern string