Mercurial > public > mercurial-scm > hg-stable
diff hgext/largefiles/remotestore.py @ 30180:736f92c44656
largefiles: always use filechunkiter when iterating files
Before, we would sometimes use the default iterator over large files. That
iterator is line based and would add extra buffering and use odd chunk sizes
which could give some overhead.
copyandhash can't just apply a filechunkiter as it sometimes is passed a
genuine generator when downloading remotely.
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Wed, 12 Oct 2016 12:22:18 +0200 |
parents | 3dcaf1c4e90d |
children | dcdc17551653 |
line wrap: on
line diff
--- a/hgext/largefiles/remotestore.py Fri Oct 14 23:33:00 2016 +0900 +++ b/hgext/largefiles/remotestore.py Wed Oct 12 12:22:18 2016 +0200 @@ -118,7 +118,7 @@ raise NotImplementedError('abstract method') def _get(self, hash): - '''Get file with the given hash from the remote store.''' + '''Get a iterator for content with the given hash.''' raise NotImplementedError('abstract method') def _stat(self, hashes):