Author giampaolo.rodola
Recipients akira, asvetlov, christian.heimes, giampaolo.rodola, gvanrossum, josh.r, josiah.carlson, neologix, pitrou, rosslagerwall, yselivanov
Date 2014-06-07.11:22:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1402140174.23.0.788967329821.issue17552@psf.upfronthosting.co.za>
In-reply-to
Content
I agree it is not necessary for sendfile() (you were right).
Do not introducing it for send(), though, poses some questions. 
For instance, should we deprecate or ignore 'blocksize' argument in ftplib as well?
Generally speaking, when using send() there are circumstances where you might want to adjust the number of bytes to read from the file, for instance:

- 1: set a small blocksize (say 512 bytes) on systems where you have a limited amount of memory

- 2: set a big blocksize (say 256000) in order to speed up the transfer / use less CPU cycles; on very fast networks (e.g. LANs) this may result in a considerable speedup (I know 'cause I conducted these kind of tests in pyftpdlib: https://code.google.com/p/pyftpdlib/issues/detail?id=94).
History
Date User Action Args
2014-06-07 11:22:54giampaolo.rodolasetrecipients: + giampaolo.rodola, gvanrossum, pitrou, christian.heimes, josiah.carlson, asvetlov, neologix, akira, rosslagerwall, yselivanov, josh.r
2014-06-07 11:22:54giampaolo.rodolasetmessageid: <1402140174.23.0.788967329821.issue17552@psf.upfronthosting.co.za>
2014-06-07 11:22:54giampaolo.rodolalinkissue17552 messages
2014-06-07 11:22:53giampaolo.rodolacreate