Homec4science

Make discovery slightly cheaper in the common case

Authored by epriestley <git@epriestley.com> on Apr 16 2014, 22:00.

Description

Make discovery slightly cheaper in the common case

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.

Reviewers: btrahan

Reviewed By: btrahan

Subscribers: epriestley

Maniphest Tasks: T4605

Differential Revision: https://secure.phabricator.com/D8781

Details

Committed
epriestley <git@epriestley.com>Apr 16 2014, 22:00
Pushed
aubortJan 31 2017, 17:16
Parents
rPH118c696f727a: Separate repository updates from the pull daemon
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPH417056932e62: Make discovery slightly cheaper in the common case (authored by epriestley <git@epriestley.com>).Apr 16 2014, 22:00