summaryrefslogtreecommitdiff
path: root/Types/BranchState.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2014-07-25 16:20:32 -0400
committerGravatar Joey Hess <joey@kitenet.net>2014-07-25 16:20:32 -0400
commitb82f48d7c248bde258e5ec034971221d338dbd6a (patch)
treee5eec8e0d4661b2e4e8ccd501a66734a6dd65391 /Types/BranchState.hs
parent2b9e3d5ca89f88fbcae237270e95c592e3ce3bc1 (diff)
core implementation of new style chunking
Not yet used by any special remotes, but should not be too hard to add it to most of them. storeChunks is the hairy bit! It's loosely based on Remote.Directory.storeLegacyChunked. The object is read in using a lazy bytestring, which is streamed though, creating chunks as needed, without ever buffering more than 1 chunk in memory. Getting the progress meter update to work right was also fun, since progress meter values are absolute. Finessed by constructing an offset meter. This commit was sponsored by Richard Collins.
Diffstat (limited to 'Types/BranchState.hs')
0 files changed, 0 insertions, 0 deletions