Charles-François Natali added the comment: > Ah ok, I misinterpreted what you wrote then. > Generally speaking though, you don't need to know the file size: you just > decide a blocksize (>= 65536 is usually ok) and use sendfile() as you use > send().
But then you make much more syscalls than what's necessary, and your heuristic for the block size is never going to match the choice the kernel makes. Anyway, here are the numbers, do you think it's interesting to merge (I mean, you're the Python ftp expert ;-) ? ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue13564> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com