Optimizing Modulus

Kevin Ryde user42 at zip.com.au
Wed Oct 29 07:30:28 CET 2003


David McKen <cic_3_b at yahoo.com> writes:
>
> How fast is the C++ interface? OOP is usually slower but as far as I
> can tell most wrappers if they are inline show just about no real
> performance difference.

That should be the case, as long as the expressions you write don't
demand temporaries that will be init/clear'ed.  Generally you can
write things like "a = b + c" and have it come out as a single call to
mpz_add.  On that level it's not much more than syntactic sugar :).


More information about the gmp-discuss mailing list