Lazy mpz allocation
tg at gmplib.org
Thu Apr 7 19:43:14 UTC 2016
Marc Glisse <marc.glisse at inria.fr> writes:
the function mpz_init could now be marked __GMP_NOTHROW. Do we want to
do it? I could then propagate the change to the C++ wrapper, which
would have a significant impact on the performance of
std::vector<mpz_class> for instance. On the other hand, this is a
promise in the interface, going back to a throwing mpz_init would be
an ABI break.
I'd say that we should go ahead and declare it __GMP_NOTHROW.
Please encrypt, key id 0xC8601622
More information about the gmp-devel