Marc Glisse <marc.gli...@inria.fr> writes:

> We already have function mpz_array_init which encourages thinking of
> the buffer as belonging to a variable,

There's a ChangeLog entry from the day before yesterday:

        * doc/gmp.texi: Undocument mpz_array_init.

I take it Torbjörn really wants to deprecate this function.

Are you using it in mpfr?

> Gratuitous extra alloc+dealloc pairs can have a horrible performance
> effect.

One can still use mpz_realloc2, which can be viewed as an allocation
hint to the gmp implementation (so in mini-gmp, it's harmless but also
mostly useless, due to the frequent use of mpz_swap).

Regards,
/Niels

-- 
Niels Möller. PGP-encrypted email is preferred. Keyid C0B98E26.
Internet email is subject to wholesale government surveillance.
_______________________________________________
gmp-devel mailing list
gmp-devel@gmplib.org
https://gmplib.org/mailman/listinfo/gmp-devel

Reply via email to