Hi,

the index for the precomp-sea method stores 131072 * 2 = 262.144 Strings 
with String.intern() in a HashMap (one instance for each job). 
Attached is a patch that changes the index to use a byte[512][256] array >
131072 bytes.

It reduces run time and memory needs in mkgmap (when --precomp-sea is used)

One problem: The unpatched version would allow to have different formats 
(*.o5m, *.osm.pbf, .osm.gz) in one sea directory. 
The patched version assumes that all files have the same prefix  and
extension. 
So, if you want to update a precompiled sea tile you have to make sure that 
you keep the name and format.
I hope this small limit is no problem?

Gerd

seaGen_v1.patch
<http://gis.19327.n5.nabble.com/file/n5743972/seaGen_v1.patch>  



--
View this message in context: 
http://gis.19327.n5.nabble.com/SeaGenerator-patch-v1-tp5743972.html
Sent from the Mkgmap Development mailing list archive at Nabble.com.
_______________________________________________
mkgmap-dev mailing list
[email protected]
http://lists.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Reply via email to