Slow tile download on android 4.4 and 4.2.2
I've found a problem related to android 4.2.2 and 4.4 with file size of tile cache.
When using Android 4.2.2 with Locus (lets call it the first device), tile load speeds are mostly around 20 tiles per second. When setting proper initcwnd, it reaches about 30-40 tiles/s.
But, second device with android 4.4, AND (!) the second device with 4.2.2, have a very big problem, with big tile cache (above 2GB). Tile download speed is then 1 tile per second. (Yes, ONE tile per second).
There is also one case where the file is 300mb in size and it's already happening. (4.2.2)
SD cards are pretty fast (write 20mb/s (megabytes/second), read 50mb (megabytes/second)). Whole cache folder (onlinemaps) is about 7GB big or more. Some are even 16GB in size.
When turning off cache for the tiles, they load very fast. So it's write related.
Also when downloading to a new sqlite file, the download is very fast. Appending to existing big file is slow.
Any idea, why this is happening?