Skip to content

search: avoid copying stats.Repos

Created by: keegancsmith

We removed an important perf optimization in https://github.com/sourcegraph/sourcegraph/pull/18982

We can likely get back the performance by using a copy-on-write map. This way we can share the map unless we really do end up mutating it.