logo separator

[mkgmap-dev] Optimization for ExtTypeAttributes

From WanMil wmgcnfg at web.de on Thu Jan 10 18:42:27 GMT 2013

> Hi,
>
> I noticed that each ExtTypeAttributes instance allocates a DecimalFormat
> instance. This requires ~700 Bytes, but it seems that it is only used in
> rare cases. With the style that I am using for testing,
> I see > 200.000 instances of the ExtTypeAttributes class, so 140Mb are
> probably wasted.
>
> Attached small patch allocates the instance only when needed.
> Any objections?
>
> Gerd
>
> ExtTypeAttributes.patch
> <http://gis.19327.n5.nabble.com/file/n5743637/ExtTypeAttributes.patch>
>

Sounds good too. I don't see any problem to apply this patch.

WanMil


More information about the mkgmap-dev mailing list