Files
openidea/crates/ide-search/src
Bert Verhelstandbertyhell eb37d9e96a perf(search): claim the match budget while a file is searched, not after it (#4043)
Each file claimed its matches from the shared budget only after it was fully searched, so a broad Find in Files query over dense files could build up to the whole budget once per walker thread and throw most of it away. Files now claim matches in batches of 64 as they find them; a binary file gives its claim back, and a non-UTF-8 file searched again as decoded text fills its byte search's claim. When the limit is hit, exactly the budget is returned. Adds a dense-files bench with a budget.

Part of #3939

Co-authored-by: bertyhell <1710840+bertyhell@users.noreply.github.com>
2026-11-18 16:58:56 +08:00
..
2026-10-22 18:55:10 +08:00
2026-10-22 18:55:10 +08:00