This is an archive of the discontinued Mercurial Phabricator instance.

exchangev2: use filesdata
ClosedPublic

Authored by indygreg on Oct 12 2018, 4:15 AM.

Details

Reviewers
None
Group Reviewers
hg-reviewers
Commits
rHGb843356d4ae1: exchangev2: use filesdata
Summary

filesdata is a more efficient mechanism for bulk fetching files data for a
range of changesets. Let's use it in exchangev2.

With this change, a client performing a full clone of mozilla-unified
transmits substantially fewer bytes across the wire:

before: 139,124,863 bytes sent
after: 20,522,499 bytes sent

The bulk of the remaining bytes is likely the transfer of ~1M nodes for
changesets and manifests. We can eliminate this by making requests in
terms of node ranges instead of explicit node lists...

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

indygreg created this revision.Oct 12 2018, 4:15 AM
This revision was automatically updated to reflect the committed changes.