I created benchmarks : https://play.golang.org/p/kgBsciRbpe
BenchmarkByteIndex-2 5000000 210 ns/op 64 B/op 1 allocs/op BenchmarkByteIndexPointeur-2 20000000 90.1 ns/op 0 B/op 0 allocs/op BenchmarkFindByte-2 10000000 181 ns/op 0 B/op 0 allocs/op BenchmarkFindHex-2 1000000 1003 ns/op 0 B/op 0 allocs/op the idea being that BenchmarkFindHex should be as good as BenchmarkByteIndexPointeur, because int32 comparison instead of byte -- 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.