STINNER Victor added the comment:

> I verified that Clang and GCC both give the expected disassembly with 
> Serhiy's patch.   We ought to restrict the #if to just the compilers that are 
> known to optimize away the memcpy.

Yes, it makes sense.

Note: Python already has Py_MEMCPY() to work around slow memcpy() for small 
copies with Visual Studio.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue25823>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to