homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients pitrou, rhettinger, tim.peters, vstinner
Date 2013年09月01日.00:33:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1377995602.25.0.838170574477.issue18835@psf.upfronthosting.co.za>
In-reply-to
Content
> Adding yet another API to allocate memory has a cost
Please don't FUD this one to death. Aligned memory access is sometimes important and we currently have no straight-forward way to achieve it. If you're truly worried about adding single new function to the public C API, we can create just a single internal function: void *PyMem_RawMallocAligned(size_t size, size_t alignment).
> aligning every data structure on a cacheline boundary 
> doesn't sound like a very good idea
We don't have to align EVERY data structure. But I do have immediate beneficial use cases for set tables and for data blocks in deque objects. I need this function and would appreciate your help in fitting it in nicely with the current memory management functions and macros.
History
Date User Action Args
2013年09月01日 00:35:47rhettingerunlinkissue18835 messages
2013年09月01日 00:33:22rhettingersetrecipients: + rhettinger, tim.peters, pitrou, vstinner
2013年09月01日 00:33:22rhettingersetmessageid: <1377995602.25.0.838170574477.issue18835@psf.upfronthosting.co.za>
2013年09月01日 00:33:22rhettingerlinkissue18835 messages
2013年09月01日 00:33:19rhettingercreate

AltStyle によって変換されたページ (->オリジナル) /