[mkgmap-dev] FW: AW: RE: computing power mdx/mdr
From Steve Ratcliffe steve at parabola.me.uk on Thu Feb 26 11:18:01 GMT 2015
On 25/02/15 15:45, GerdP wrote: > I think a better solution reg. memory would be not to store the > byte array for the partial name at all. Since it is a sub string of > the name, I assume it should be sufficient to calc the offset and length > in the byte array and store these values? Where do you mean? A call to substring() shares the byte array of the original string, so there is no extra array. Also I don't think it is stored anywhere as the sort key is a new array. We just do not need the MultiSortKey when the partialName is the same as the name so we can eliminate using the partialName altogether. As in attached patch (warning: untested). ..Steve -------------- next part -------------- A non-text attachment was scrubbed... Name: single-key-for-full-name.patch Type: text/x-patch Size: 3400 bytes Desc: not available URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20150226/0da8f8b7/attachment.bin>
- Previous message: [mkgmap-dev] FW: AW: RE: computing power mdx/mdr
- Next message: [mkgmap-dev] FW: AW: RE: computing power mdx/mdr
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the mkgmap-dev mailing list