GMP allocation changes

Torbjorn Granlund tege@swox.com
27 Oct 2002 23:38:59 +0100


Kevin Ryde <user42@zip.com.au> writes:

  Torbjorn Granlund <tege@swox.com> writes:
  >
  > Some work will also be needed at the mpz level to reduce stack
  > allocation.  But we should start at the mpn level, I think.
  
  What did you think of the idea to have all TMP_ALLOC calls check the
  size they're asked for and use malloc above a threshold?
  
I don't like that idea.

In many places, one knows a TMP_ALLOC invocation is for a small amount
of memory.

We might want to have a TMP_STACK_OR_HEAP_ALLOC for what you suggest.

-- 
Torbjörn