logo separator

[mkgmap-dev] MDR building out-of-memory

From Ticker Berkin rwb-mkgmap at jagit.co.uk on Tue May 11 12:27:22 BST 2021

Hi Gerd

Here is updated version of patch.

Changes from last:

Uses your cache code for region and country (in 2 places). For British
Isles, there are 190 regions and 7 countries, so I don't think the
extra memory will be a problem and there should be some performance
benefit.

Delays allocating cities until it can use sortKeys.size() for initial
allocation. For above map this is 0.07% too big, so I don't think
trimToSize() is worthwhile.

Shares the Sort object between the 4 methods.

Ticker
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mdr5Mem_v3.patch
Type: text/x-patch
Size: 5528 bytes
Desc: not available
URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20210511/3af5336a/attachment.bin>


More information about the mkgmap-dev mailing list