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
F14053968: D8781.diff
Fri, Nov 15, 8:54 PM
F14045837: D8781.diff
Wed, Nov 13, 1:13 PM
F14042491: D8781.diff
Tue, Nov 12, 3:51 AM
F14027236: D8781.diff
Fri, Nov 8, 6:01 AM
F13981611: D8781.id.diff
Oct 19 2024, 5:52 PM
F13974864: D8781.diff
Oct 18 2024, 7:41 AM
F13971963: D8781.id20858.diff
Oct 17 2024, 4:23 PM
F13962187: D8781.id20858.diff
Oct 15 2024, 8:39 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