Are the built-in HTTP servers production quality?
Irmen de Jong
irmen at -nospam-remove-this-xs4all.nl
Mon Jul 19 15:08:28 EDT 2004
Grant Edwards wrote:
> Why do you have to buffer the entire file? You couldm ake two
> almost-identical conversion passes through the file: the first
> time, just count the "output" bytes. Finish sending the HTTP
> headers out, then make the second pass actually writing the
> output bytes.
That would slow things down quite a bit, because you now
have to do the same CPU-intensive task twice.
But it saves memory.
Oh, the choices...
--Irmen
More information about the Python-list
mailing list