reactphp-curl
reactphp-curl copied to clipboard
Change Timer Value
Changing the timer value will allow the client to achieve a higher download speed, and has resulted in faster downloads during my tests. You can also change this in the client, but an additional decimal really helped the default setup.
I believe the default should be 0, but you used a decimal so in the end I added another one.
195MB locally hosted file
timer | DL Speed B/s | Total Time |
---|---|---|
0.01** | 2,726,304 | 75.35 sec |
0.001 | 12,147,901 | 17.07 sec |
0.0001 | 15,367,167 | 13.55 sec |
0.00001 | 15,438,987 | 13.48 sec |
0 | 17,383,603 | 12.00 sec |
** Default timer interval (I see around this speed max no matter the filesize)
You could even set it to 0, without any real downsides also a lot of other code uses 0 as the interval.