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
Unknown Object (File)
Sat, Apr 27, 12:48 PM
Unknown Object (File)
Sat, Apr 27, 12:49 AM
Unknown Object (File)
Fri, Apr 26, 6:57 AM
Unknown Object (File)
Thu, Apr 25, 4:43 PM
Unknown Object (File)
Thu, Apr 25, 5:28 AM
Unknown Object (File)
Wed, Apr 24, 10:11 PM
Unknown Object (File)
Mon, Apr 22, 10:30 AM
Unknown Object (File)
Sat, Apr 20, 6:46 PM
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