[Twisted-Python] Bloody Twisted Tree (VFS)
glyph at divmod.com
glyph at divmod.com
Mon Jul 7 00:43:44 EDT 2008
On 02:04 am, andrew-twisted at 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.
More information about the Twisted-Python
mailing list