Le dimanche 26 février 2017 19:05:38 UTC+1, Michael Jones a écrit :
>
> Back on the ground for a bit with speedup news. My first ever performance
> tuning over Iran turned out well, the 100 case formerly...
>
on the same MacBook Pro. I also changed the code to take advantage of the
MBPs
Le dimanche 26 février 2017 11:46:17 UTC+1, Tamás Gulácsi a écrit :
>
>
> Int is for indexung memory.
Are you sure? When i write age := 20, i don't play with memory index...
So, i have to write age := int32(20) or var age int32 = 20, which is rather
boring, imho.
--
You received this mess
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
Hi,
I'm just trying to learn Go and, as i do with other languages, i first try
to code some trivial algorithms.
Here, i want to implement a program which displays the amical numbers
couples given a limit. I'm using the very same algorithm i'm using in
Python, Java, Haskell, Scala, Nim, etc.)
M