Lazy mpz allocation

Marc Glisse marc.glisse at
Fri Apr 1 14:33:11 UTC 2016


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.

Marc Glisse

More information about the gmp-devel mailing list