2013/6/19 Kristján Valur Jónsson <krist...@ccpgames.com>: > Oh, it should be public, in my opinion.
Ok. And do you think that the PyMemMappingAllocator structure is complete, or that we should add something to be future-proof? At least, PyMemMappingAllocator is enough for pymalloc usage :-) Is PyMemMappingAllocator complete enough for your usage at CCP Games? > We do exactly that when we embed python into UnrealEngine. We keep pythons > internal PyObject_Mem allocator, but have it ask UnrealEngine for its arenas. > That way, we can still keep track of python's memory usage from with the > larger application, even if the granularity of memory is now on an "arena" > level, rather than individual allocs. I hope that the PEP 445 is flexible enough to allow you to decide which functions are hooked and replaced, and which functions will be leaved unchanged. That's why I'm not in favor of the "Make PyMem_Malloc() reuse PyMem_RawMalloc() by default" alternative. Victor _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com