You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit c117b0c
Browse filesBrowse the repository at this point in the historyBrowse files
perf(cli): share a running catalog gather between searches (#9460)
* perf(cli): share a running catalog gather between searches
Searches that start while gatherCandidatesReused is still gathering now
wait for that gather instead of starting their own. Locally, nine
concurrent cold searches took 1.6 s instead of 13.8-18.8 s; a docs site's
search sees this when several queries reach a server that is starting.
* perf(cli): reuse gathers through reusedWhileUnchanged
A search that joined a running gather skipped the stamp check, so after an
edit to a file the gather had already read it could get the pre-edit
catalog. Keep one reusedWhileUnchanged loader per folder and type instead:
it shares a running load only while what it read is unchanged. The loader
takes the stamp check its caller imports, so the adapter's tests can still
hold that answer.
[perf]`search()` shares a catalog gather that is still running: searches that start together in one long-running process, such as a docs site's search right after it starts, now gather once instead of once each
0 commit comments