Thanks for all your answers... 

After further investigations, i've got the same conclusion: the culprit is 
int64 and, more specifically, the mod operation. Java is faster because its 
ints are 32 bits.
Changing all int with int32 in my code gives 3.2secs, which seems more 
reasonnable.

So, is there a quick workaround to, say, configure the int type to use 
int32 instead of int64 ?

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