
26 Feb
2015
26 Feb
'15
11:18 a.m.
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