Floris Bruynooghe <[email protected]> added the comment: On 29 April 2011 17:16, Antoine Pitrou <[email protected]> wrote: > > Antoine Pitrou <[email protected]> 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? ---------- _______________________________________ Python tracker <[email protected]> <http://bugs.python.org/issue3526> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
