cgi.FieldStorage() is slow
Jonas Galvez
jonasgalvez at gmail.com
Tue Nov 16 01:13:52 EST 2004
Nehal wrote:
> after profiling, it seems like:
> self.read_lines_to_outerboundary()
> which is called from
> cgi.FieldStorage()
> is the reason why it's so slow.
>
> when uploading small files, you won't notice a difference, but if
> you upload files larger than 2 megs, you can notice it.
Well, you could use sys.stdin.read() and retrieve POST data in a
customized manner (bytes per cycle). But I doubt it would help.
\\ jonas galvez
// jonasgalvez.com
More information about the Python-list
mailing list