[Python-ideas] speeding up shutil.copy*()
Antoine Pitrou
solipsis at pitrou.net
Sun Mar 3 21:12:01 CET 2013
On Sun, 3 Mar 2013 20:55:15 +0100
Charles-François Natali
<cf.natali at gmail.com> wrote:
> > Can you post your benchmark's code? I could time it on a SSD.
>
> Attached (for readinto() and sendfile()).
Ok, the readinto() version doesn't seem to make a difference here, only
the sendfile() version is beneficial (and the benefits are mostly
noticeable from tmpfs to /dev/null, as you point out :-)).
Regards
Antoine.
More information about the Python-ideas
mailing list