
July 7, 2008
4:43 a.m.
On 02:04 am, andrew-twisted@puzzling.org wrote:
Jonathan Lange wrote:
Well, one theoretical advantage is that it can avoid roundtrips in cases where the remote file server supports a readv-style operation. I can't think of any servers that do this at the moment (maybe the bzr smart server? does http 1.1 allow this?), so maybe it's not an issue.
Yes, the bzr smart server does, as does HTTP (via the Range header). On high-latency links (or even moderate latency links) excessive round trips kill performance.
OK, I think I can see what you mean. I believe you'll be able to effectively implement "readChunks" by simply pipelining calls to readInto(consumer); different consumers can be read into in parallel.