Memory usage for large multiplications
Paul Zimmermann
Paul.Zimmermann at loria.fr
Fri Jan 29 14:48:06 CET 2010
Marco,
> GMP-5.0 uses an itch/scratch logic, it allocates (almost) all needed
> memory before starting the computation, and frees it all at the end.
> GMP-4.3 allocates, then frees, then allocates again, and frees again... It
> is much more difficult to get the "maximal" snapshot.
maybe this latter strategy is better, since at any time you have allocated
just what is really needed (assume for example you have several GMP threads
on the same computer).
Paul
More information about the gmp-devel
mailing list