Repository navigation
perf(grep): rank the first file batch before searching - #960
Conversation
Rank the first file batch before searching large candidate lists. Sort the remaining files when a search reaches them. Preserve the order of files with equal scores.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
Bring in 23 upstream commits, among them the bigram column reuse fix (dmtrKovalenko#962), literal git status paths (dmtrKovalenko#922), the faster first grep batch (dmtrKovalenko#960) and Blueprint text detection (dmtrKovalenko#931). The fork's default ripgrep walker now uses is_binary_file, so text .blp files stay searchable there too. The upstream post-scan test sets the fork's respect_ignore_files field. Vis-Session: 87db81b7-743c-4c3a-9132-78b8940cc023
Rank the first file batch before searching large candidate lists. Sort the remaining files when a search reaches them. Preserve the order of files with equal scores.
Stock Criterion compared the change with #958 on a warm 1.87-million-file repository. The content index was disabled. Each value is the median of two fresh process medians.
The first page returned 53 matches and stopped after 4,090 files. Full-scan timings overlapped. The regression test compares batch order and deep cursors against a full stable sort.
Summary by CodeRabbit