[Python-checkins] python/nondist/sandbox/twister _random.c,1.3,1.4

Andrew MacIntyre andymac@bullseye.apana.org.au
Thu, 26 Dec 2002 10:51:09 +1000 (est)


On Wed, 25 Dec 2002, Just van Rossum wrote:

> rhettinger@users.sourceforge.net wrote:
>
> > Followed Just's suggestion to use PyMem_Malloc/Free instead of
> > PyMem_MALLOC/FREE.
>
> Please note that this suggestion was followed by a question mark -- I
> have no idea which is best, I just personally tend to stay away from
> capitalized macro's ;-)

Also, is there any value here in using PyMalloc's PyObject_Malloc/Free
instead of PyMem_Malloc/Free?  This might get back your small speed loss
if the amount of memory involved is small enough for PyMalloc to kick in.

--
Andrew I MacIntyre                     "These thoughts are mine alone..."
E-mail: andymac@bullseye.apana.org.au  | Snail: PO Box 370
        andymac@pcug.org.au            |        Belconnen  ACT  2616
Web:    http://www.andymac.org/        |        Australia