moocdev / osmdroid

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

Use StatFs instead of counting individual files #304

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
TileWriter.calculateDirectorySize has a loop for every file and every 
directory. Presumably it would be quicker and more efficient to use StatFs 
instead.

Original issue reported on code.google.com by neilboyd on 30 Jan 2012 at 10:17

GoogleCodeExporter commented 8 years ago
StatFs gets the size of the file system that the directory is in, not the size 
of the directory.

Original comment by neilboyd on 2 Feb 2012 at 1:37