Neal Norwitz wrote:
> It's not just size.  Architectures may require data aligned on 4, 8,
> or 16 addresses for optimal performance depending on data type.  IIRC,
> malloc aligns by 8 (not sure if that was a particular arch or very
> common).  I don't know if pymalloc handles alignment.

Yes, pymalloc takes care of alignment. From Object/obmalloc.c:

Small requests are grouped in size classes spaced 8 bytes apart, due to
the required valid alignment of the returned address.

_______________________________________________
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

Reply via email to