[Twisted-web] static file performance
Phil Christensen
phil at bubblehouse.org
Tue Mar 4 16:26:07 EST 2008
On Mar 4, 2008, at 3:54 PM, Thomas Hervé wrote:
> Phil Christensen a écrit :
>> What is the best way to send static files to the client in
>> twisted.web? I know web2 had some preliminary support for mmap for
>> small files, but I know it didn't work the last time I checked, and
>> I'm trying to stick with twisted.web for now, anyways.
>
> If you use a supported platform (Linux, FreeBSD, maybe Leopard),
> sendfile is the best way to get close to Apache performance on
> static files. The ticket #585 (http://twistedmatrix.com/trac/ticket/585
> ) is where we try to do that. Unfortunately, this is a huge change,
> so it requires huge energy to get it into Twisted :). So any help on
> this ticket would be great: reviews, adding tests, performance
> measures, etc...
Hmm, that looks very promising. I'll definitely give the branch a try.
One thing I'm still kind of unclear on w.r.t. working on Twisted. How
are you supposed to know what needs to be done for that ticket to be
finished?
I know it's unrealistic to expect a list of "action items", but it
seems like there are some reviewers who requested revisions, but then
never responded to follow-up questions...
-phil
More information about the Twisted-web
mailing list