Optimal base for mpz_set_str()

Paul Zimmermann Paul.Zimmermann at loria.fr
Tue Sep 21 21:45:38 CEST 2010

> Any tips or suggestions?

I would use the largest allowed power of two, i.e., 32. Conversion is O(n)
for a power-of-two base, against O(M(n) log n) for other bases.

Paul Zimmermann

More information about the gmp-discuss mailing list