logo separator

[mkgmap-dev] SeaGenerator patch v1

From GerdP gpetermann_muenchen at hotmail.com on Fri Jan 11 15:34:59 GMT 2013

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.


More information about the mkgmap-dev mailing list