zeta243 / osmdroid

Automatically exported from code.google.com/p/osmdroid
1 stars 0 forks source link

MapTileFileArchiveProvider eats lot of memory #337

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Copy few offline map zipped files to osmdroid folder 
2. Run mapviewer

When i used osmdroid-android in my project with offline maps, 
MapTileFileArchiveProvider eats a lot of memory for each zip archive, sometimes 
0,5 MB of memory for each zip file. When i cross 6MB of memory, application 
begin throwing a lot out of memory exceptions.

The main memory eater is at
org.osmdroid.tileprovider.modules.getZipFileArchive line 26;
return new ZipFileArchive(new ZipFile(pFile));

Original issue reported on code.google.com by vbu...@gmail.com on 10 Apr 2012 at 8:04

GoogleCodeExporter commented 9 years ago

Original comment by neilboyd on 11 Apr 2012 at 5:05