Message134783
On 29 April 2011 17:16, Antoine Pitrou <report@bugs.python.org> wrote:
>
> Antoine Pitrou <pitrou@free.fr> added the comment:
>
>> Yes, I was probably not clear:
>> When --with-dlmalloc is activated, PyMem_MALLOC/PyMem_Malloc will call
>> dlmalloc, PyMem_REALLOC/PyMem_Realloc will call dlrealloc and
>> PyMem_FREE/PyMem_Free will call dlfree.
>>
>> While calls to malloc/free/realloc will use the platform implementation.
>
> I'm not sure why you would want that. If dlmalloc is clearly superior,
> why not use it for all allocations inside the application (not only
> Python ones)?
For the same reason that extension modules can choose between
PyMem_Malloc and plain malloc (or whatever else). Python has never
forced it's malloc on extension modules why should it now? |
|
Date |
User |
Action |
Args |
2011-04-29 16:26:58 | flub | set | recipients:
+ flub, tim.peters, loewis, pitrou, sable, neologix, BreamoreBoy |
2011-04-29 16:26:57 | flub | link | issue3526 messages |
2011-04-29 16:26:57 | flub | create | |
|