logo separator

[mkgmap-dev] Optimization for ExtTypeAttributes

From Felix Hartmann extremecarver at gmail.com on Thu Jan 10 15:56:24 GMT 2013

tried out the patch, it doesn't save much for me (around 0.5% in mapsize 
for Austria), but better save something than not if it doesn't matter.
On 09.01.2013 18:04, GerdP wrote:
> 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>
>
>
>
>
> --
> View this message in context: http://gis.19327.n5.nabble.com/Optimization-for-ExtTypeAttributes-tp5743637.html
> Sent from the Mkgmap Development mailing list archive at Nabble.com.
> _______________________________________________
> mkgmap-dev mailing list
> mkgmap-dev at lists.mkgmap.org.uk
> http://lists.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

-- 
keep on biking and discovering new trails

Felix
openmtbmap.org & www.velomap.org



More information about the mkgmap-dev mailing list