Increase speed of caching tiles on slow memory cards

MapMan shared this idea 6 years ago
Declined

Increase speed of caching tiles on slow memory cards. Doing DB updates in batch transactions, write to cache DB file in background thread (to avoid slowing down the rendering for writing on slow SD card). Many SD cards are very slow in random write (ops - operations in second). Including SD cards class 10.


http://forum.xda-developers.com/showt...

Comments (5)

photo
0

Background reads on map data, background writes on cache... Locus has a lot of things to improve regarding multi threading. Waiting for IO is always silly, not just with networking. Proper implementation of file io would immediately give speed boosts of 100% and more with very little effort... as opposed to painfully optimizing existing code and be happy about a few percent here or there :).

photo
0

locus already read and write into db on separate thread. So sorry, I see no way here to improvements.


"One" thread download map tile. When this is done, it`s immediately used for rendering and downloaded data are send to another thread with lower priority that take care about proper storing into database

photo
0

When I disable caching in Settings/Map - advanced menu/Cache online maps, loading online map tiles (when I move the map, zoom etc.) is about 10x faster. It`s very significant difference. Internet connection is pretty fast (tested on about 40 Mbps, 20 ms pings wifi). But memory card is slow in random write small blocks (it`s frequent phenomenon).

photo
0

Your mem card must be really slow btw. I can hardly notice any difference at all.

photo
1

I'm closing this idea. In locus were done quite a lot of improvements in map handling/rendering speed, but probably not has direct effect on storing (IO operations) on your card. As I wrote, there is not much I can do. If you have slow card, I really suggest to invest few bugs to little faster