Second Perfloop merge into zoekt, the open-source engine behind @Sourcegraph's code search.
Full-result searches were sorting matches over and over as chunks arrived. This change waits for the full set, then sorts once, while keeping memory usage bounded.
On the workload we measured, that path went from about 224ms per search to about 9ms (about a 96% reduction).
github.com/sourcegraph/zoekt…
4
17
1,747

