diff options
author | Dave Borowitz <dborowitz@google.com> | 2012-10-23 15:00:54 -0700 |
---|---|---|
committer | Dave Borowitz <dborowitz@google.com> | 2012-10-24 14:51:58 -0700 |
commit | 67700e9b90a38cc3719c818bc967153e8b7b429e (patch) | |
tree | 57768c3936f66cb28b623c13e59c2bc1dba247ff /git_refs.py | |
parent | 5c6eeac8f0350fd6b14cf226ffcff655f1dd9582 (diff) | |
download | git-repo-67700e9b90a38cc3719c818bc967153e8b7b429e.tar.gz |
sync: Order projects according to last fetch time
Some projects may consistently take longer to fetch than others, for
example a more active project may have many more Gerrit changes than a
less active project, which take longer to transfer. Use a simple
heuristic based on the last fetch time to fetch slower projects first,
so we do not tend to spend the end of the sync fetching a small number
of outliers.
This algorithm is probably not optimal, and due to inter-run latency
variance and Python thread scheduling, we may not even have good
estimates of a project sync time.
Change-Id: I9a463f214b3ed742e4d807c42925b62cb8b1745b
Diffstat (limited to 'git_refs.py')
0 files changed, 0 insertions, 0 deletions