On 11/23/16 4:31 PM, Steven Schveighoffer wrote:
On 11/23/16 2:30 PM, ketmar wrote:
this can be fixed either by using slow char-by-char comparisons in
druntime, or by fixing codegen, so it would sort strings as byte arrays.

I think it makes the most sense to remove the memcmp, and do binary
search based on actual char values.

On second thought, this is compiler-generated data, will never change. We may as well make it as efficient as possible.

So the better way is to sort based on byte array, and just use memcmp for everything.

-Steve

Reply via email to