3 ms·Linear search is also quite a bit faster than maps for small arrays (in Go at least, last time I tested it).by arp242 6y agoLinear search is also quite a bit faster than maps for small arrays (in Go at least, last time I tested it).