With 1.14, it used to reach 7MB/s but now it is mostly below 1MB/s
Any hint what could cause this?
Thanks,
Hi @Kevin321an . Thanks for using Fetch. Do you have an example project I can test from? Also if you don't mind sharing the link you are trying to download from, device you are testing on, download speed etc. You should defiantly be getting better speeds from version 2 of the library. What happens if you change the DownloadBufferSize when constructing the Fetch builder? The default buffer size is 8192 bytes which is optimal for most cases.
final int bufferSize = 8192;
fetch = new Fetch.Builder(context, "Main")
.setDownloadBufferSize(bufferSize)
.build();
Downloading speed is very low when comparing v1.1.5. Even I have added the buffer size to 8192.
Are you able to share the url or a sample project for me to test?
Hi Tonyo,
I tried double the defaultBufferSize and it did not solve the issue.
The download speed from your example "http://download.blender.org/peach/bigbuckbunny_movies/BigBuckBunny_640x360.m4v" perform huge download speed difference from the testing.
with v1 takes few seconds and the download speed could reach 13MB/s
On the other hand, v2 takes about 2 minutes and the download speed only reach 2MB/s Maximum.
The result tested with Pixel and Mi A1
Thanks,
check with this link Tonyo,
https://drive.google.com/open?id=1prgIZkhnpdco-qRQGgbKQOIhzjb7oHW1
Sample App
Select single download demo
@Kevin321an @sathiyarajcbe how many concurrent downloads are you running at a given time? If you pass a value greater than one to setDownloadConcurrentLimit(1) on the Fetch builder, and then enqueue multiple requests, Fetch will download as many request at the same time as the concurrentLimit allows. The more concurrent downloads you have at a given time, the slower download speeds per download you will get. All downloads have to share the same network bandwidth.
If you currently have the concurrent limit set to one and still experiencing slow downloads, try using using the okHttp downloader with Fetch. See the readme for more details on Downloaders. Please let me know if this helps.
I will also have a look at the samples and test. Waiting for your feedbacks.
I tried the setDownloadConcurrentLimit(1) and the OkHTTP downloader but it did not help to increase the downloading speed.
For me too same result with limit 1 and OkHttp!
@Kevin321an, @sathiyarajcbe I am now also getting very slow speeds also from the library. Looking into this further. Will label as a bug and try to get a fix asap.
Waiting Tonyo!!!
Thank you
@Kevin321an @sathiyarajcbe I have pushed a new version of Fetch with fixes. Please see README for new Fetch version and let me know if there are any issues.
Working fine thank you!
It works now. Thanks,
great.
Most helpful comment
@Kevin321an @sathiyarajcbe I have pushed a new version of Fetch with fixes. Please see README for new Fetch version and let me know if there are any issues.