cgi.py performance

jimh jim at jim.jim
Thu Apr 4 13:28:27 EST 2002


"Jon Ribbens" <jon+usenet at unequivocal.co.uk> wrote in message
news:slrnaaok15.4ei.jon+usenet at snowy.squish.net...
> In article <a8ght4$o8o$1 at web1.cup.hp.com>, jimh wrote:
> > I am using cgi.py to handle the transfer of large incoming files.
Because
> > of the way that cgi.py handles multipart/form-data, the performance is
VERY
> > poor.
>
> You could try jon.cgi from jonpy, it might be more efficient.
> http://jonpy.sourceforge.net/

Hey, that looks pretty cool.  I do have one question before I try it out: in
mime.py, Entity.__init()__, which splits up the data on the boundaries,
loads the entire file at once, if I am not mistaken ("msg = fp.read()").
What will happen if I am transferring a very large file, 50-100MB?

Thanks,
Jim





More information about the Python-list mailing list