[Web-SIG] Use cases for file-like objects (was Re: Bill's comments
on WSGI draft 1.4)
Jp Calderone
exarkun at divmod.com
Wed Sep 8 15:28:29 CEST 2004
Phillip J. Eby wrote:
> [snip]
>
> Before you implement it, I should warn you that I'm thinking
> 'file_wrapper' was a bad idea, and that there's a better way to do all
> this.
>
> As I understand them, the current use cases for file-like objects are:
>
> 1. sendfile(fileno()) for fast file-descriptor copying (Unix-like OSes
> only, and only single-thread synchronous servers like Apache 1.x or CGI)
FWIW, there's a non-zero probability Twisted will support this at
some point in the future. A (horrible, hackish) proof of concept
already exists.
Jp
More information about the Web-SIG
mailing list