Oh yeah, preallocating 256 elements is fine. It's a bit expensive to allocate 2**16 for the int16 case, so I'll have to do with the slow hashing there - or are there any plans for speeding up that one?
Cheers, this is helpful. O. On Saturday, 17 December 2016 06:15:43 UTC+1, Damian Gryski wrote: > > The runtime has optimized map implementations for strings, int32 and > int64-sized thing > > There is no optimized implementation for int8-sized things -- just use an > array. > > Damian > > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.