[issue18835] Add aligned memroy variants to the suite of PyMem functions/macros

Antoine Pitrou report at bugs.python.org
Mon Aug 26 12:23:02 CEST 2013


Antoine Pitrou added the comment:

Unless the memory allocator actually supports it, this means you lose a whole lot of memory for padding, though... Memory which will sit there unused at the end of another cacheline.

Note that the current small object allocator, if not disabled, *should* already return you aligned memory, by construction (each allocation size has dedicated pools from which memory blocks are carved).

----------
nosy: +haypo, pitrou, tim.peters

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18835>
_______________________________________


More information about the Python-bugs-list mailing list