I noticed your “naive explanation” after I sent my message. But I think it is the real explanation.
Is there a better way to do it in Go? Probably not. The math/big library isn’t quite as fast as gmp, but it’s probably faster than anything you’d write yourself. If the numbers were really huge, you’d probably gain some by calling gmp with cgo. But for moderate-sized numbers, the cgo overhead would probably cancel out your gains. Andy -- 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.