Page MenuHomePhabricator

Make discovery slightly cheaper in the common case
ClosedPublic

Authored by epriestley on Apr 15 2014, 11:23 PM.
Tags
None
Referenced Files
F18875348: D8781.diff
Wed, Nov 5, 5:39 PM
F18873961: D8781.diff
Wed, Nov 5, 12:23 PM
F18870992: D8781.id20858.diff
Tue, Nov 4, 8:18 PM
F18870453: D8781.id.diff
Tue, Nov 4, 5:30 PM
F18756912: D8781.id.diff
Oct 5 2025, 2:22 PM
F18748040: D8781.diff
Oct 3 2025, 6:45 PM
F18747943: D8781.diff
Oct 3 2025, 6:19 PM
F18735594: D8781.diff
Oct 1 2025, 2:26 AM
Subscribers

Details

Summary

Ref T4605. Before discovering branches, try to prefill the cache in bulk. For repositories with large numbers of branches, this allows us to issue dramatically fewer queries.

(Before D8780, this cache was usually held across discovery events, so being able to fill it cheaply was not as relevant.)

Test Plan

Ran discovery on Git, Mercurial and SVN repositories. Observed fewer queries for Git/Mercurial.

Diff Detail

Repository
rP Phabricator
Lint
Lint Skipped
Unit
Tests Skipped