Unfortunately, you have to compromise between performance and disk space. Cards with tiles are loaded much faster and do not require a large amount of RAM, but several versions (the form of cache copies) with several resolutions require a lot of disk space.
If your program works over the network, you can configure the map server, possibly using the WMS protocol (http://en.wikipedia.org/wiki/Web_Map_Service), so that your client works as a thin client, but if your program works offline You have to work hard. The cottsak related article is very good.
I suggest you try different combinations of tile permissions and test their performance directly until you find a good compromise.
usr-local-ΞΞ¨ΞΞΞΞ©Ξ
source share