Re: mpz_t caching

2015-09-04 Thread Torbjörn Granlund
Vincent Lefevre writes: In 2014, Patrick Pelissier (in Cc) implemented a mpz_t allocation cache for MPFR, redefining mpz_init and mpz_clear, in order to avoid some deallocations/allocations (via the indirect call to the allocation functions) when mpz_t's cleared and

Re: mpz_t caching

2015-09-04 Thread Vincent Lefevre
On 2015-09-04 10:24:31 +0200, Niels Möller wrote: > Vincent Lefevre writes: > > > In 2014, Patrick Pelissier (in Cc) implemented a mpz_t allocation > > cache for MPFR, redefining mpz_init and mpz_clear, in order to > > avoid some deallocations/allocations (via the indirect

mpz_t caching

2015-09-04 Thread Vincent Lefevre
Hi, In 2014, Patrick Pelissier (in Cc) implemented a mpz_t allocation cache for MPFR, redefining mpz_init and mpz_clear, in order to avoid some deallocations/allocations (via the indirect call to the allocation functions) when mpz_t's cleared and init'ed again a bit after. I've attached the patch

Re: mpz_t caching

2015-09-04 Thread Niels Möller
Vincent Lefevre writes: > In 2014, Patrick Pelissier (in Cc) implemented a mpz_t allocation > cache for MPFR, redefining mpz_init and mpz_clear, in order to > avoid some deallocations/allocations (via the indirect call to > the allocation functions) when mpz_t's cleared and