Message183606
> 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 ;-) ? |
|
Date |
User |
Action |
Args |
2013-03-06 16:55:36 | neologix | set | recipients:
+ neologix, pitrou, giampaolo.rodola, eric.araujo, rosslagerwall |
2013-03-06 16:55:36 | neologix | link | issue13564 messages |
2013-03-06 16:55:36 | neologix | create | |
|