On 3-6-2010 19:47, Nathan Huesken wrote:
Hi,

I am writing a network application which needs from time to time do
file transfer (I am writing the server as well as the client).
For simple network messages, I use pyro because it is very comfortable.
But I suspect, that doing a file transfer is very inefficient over
pyro, am I right (the files are pretty big)?

How big is 'pretty big'?

Pyro could work just fine for file transfers, depending on the size of the files, how often you need to transfer, and the speed of your computer.

But you are correct that Pyro has substantial overhead compared to a solution specifically designed for file transfer (such as copying over network file system or network shares, ftp, or http). It boils down to:
- reading the whole file into memory before it can be transferred
- needing to pickle/unpickle the file data

This might or might not be an actual problem.

If you really need another protocol for your file transfers, I agree with Jean-Paul to just use a HTTP based solution (web server). Or maybe simply copy the file over a network share/network filesystem? Both can be configured to require proper authentication.


Irmen
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to