@Jan, Why not but I don't understand.
Because if I do 

        startTime = time.Now()
        for i := 0; i < 10000000; i++ {
            result = bytes.Index([]byte(hash), []byte(toSearch)) != -1
        }
        fmt.Printf("bytes.Contains Find: %t Time : %.2f sec.\n", result, 
time.Now().Sub(startTime).Seconds())

performance is better with so much data manipulated.


-- 
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.

Reply via email to