Current code reads 16k blocks and sleeps 25ms between
each block read. This means that max 40 blocks of 16k
are read per second, limiting the maximum download
speed to 40 x 16k = 640k/sec. Attached patch removes
the unconditional 25ms sleep and instead sleeps 10ms if
no data was received. When testing downloads on a LAN,
this increased the download speed to ca. 10000k/sec
(close to theoretical max).
NSISdl patch
Logged In: YES
user_id=584402
Thanks, applied with some changes. I've removed the Sleep
call after errors because it's not really needed. The loop
ends immediately, if an error is set.