[Zope] Why does upload times differ when using FTP or the management interface?

Oliver Bleutgen myzope@gmx.net
Thu, 24 Jan 2002 13:42:41 +0100


Ausum wrote:

> These are times of single file uploads, from the local file system:
> 
> A tiff file of 4.7 MB:
> Using the management interface: 2'10"
> Using FTP:   25 seconds
> 
> A jpeg of 478Kb:
> MI: 14 seconds
> FTP: 3 1/2 seconds
> 
> An mp3 of 3.6MB:
> MI:     1'40"
> FTP:   17 seconds
> 
> Why is this happening? Times were measured from pushing the required button
> until the
> page response (in the case of the MI), and until the "transfer complete"
> message in FTP. The test box was a Pentium 200 running Windows 2000, Zope
> 2.5b4, IE 5.5, and WS_FTP95.
> 
> [...]

> 
> Is it known that FTP is faster even for single uploads? If so, why does it
> have to be that way?
> 

Hmm,

I don't know why the difference is that large, but one factor for sure is that
the browser upload is using base64 encoding, which enlarges the data by a factor
of up to 40% IIRC.

cheers,
oliver