Andrew PhillipsMy rule of thumb: if you want the fastest use a table.On first look to me the obvious and simple way is just to use strconv.Atoi on the one or two digits. I did a benchmark and it's about 6ns…Mar 2, 20211Mar 2, 20211