14 Feb
2008
14 Feb
'08
4:22 a.m.
Travis, I notice that you used PyDataMem_NEW, PyDimMem_NEW, and friends to allocate memory in the sort routines. Is there a good reason to use these rather than malloc? Chuck
14 Feb
14 Feb
4:30 a.m.
Charles R Harris wrote:
Travis,
I notice that you used PyDataMem_NEW, PyDimMem_NEW, and friends to allocate memory in the sort routines. Is there a good reason to use these rather than malloc? Only to allow for the possibility of different allocation routines. There is an option to use the Python memory allocators, for example.
For temporary memory, though malloc and free is fine. -Travis
5915
Age (days ago)
5915
Last active (days ago)
1 comments
2 participants
participants (2)
-
Charles R Harris
-
Travis E. Oliphant