Skip to content

Platform native calls

Pre-release
Pre-release
Compare
Choose a tag to compare
@antirotor antirotor released this 20 Nov 10:55
· 47 commits to master since this release
7c07113

This pre-release use patform native call to copy files. On windows, this is CopyFile2() and on linux it uses special ioctl call do do server-side copy on samba shares. This is faster then on v1.x as there is no overhead from subprocess call to xcopy,

Size (Mb) Python (win) Speedcopy (win) Python (linux) Speedcopy (linux) xcopy (win) Win speedup Linux speedup speedcopy vs xcopy
1 0,08 0,02 0,07 0,01 0,15 3,59 6,89 6,02
2 0,17 0,03 0,09 0,01 0,16 6,70 8,51 5,79
4 0,33 0,03 0,13 0,01 0,16 12,02 11,14 4,84
8 0,67 0,03 0,19 0,01 0,17 19,97 13,26 4,35
16 1,36 0,04 0,29 0,02 0,18 35,29 14,78 2,82
32 2,36 0,06 0,47 0,03 0,20 37,78 16,40 0,20
64 57,45 0,98 8,01 0,47 2,24 58,88 16,95 13,44
128 10,93 0,17 1,33 0,23 0,31 65,48 5,77 0,13
256 20,38 2,28 2,66 0,48 2,95 8,96 5,56 0,74
512 35,95 4,00 5,38 0,98 4,42 8,99 5,49 0,16
1024 65,63 28,03 10,33 2,92 30,33 2,34 3,54 ~0