[issue5109] array.array constructor very slow when passed an array object.

Malcolm Purvis report at bugs.python.org
Wed Feb 4 12:22:31 CET 2009


Malcolm Purvis <malcolm at purvis.id.au> added the comment:

It's true that memcpy won't work when the data type changes, but I would
assume (with no evidence to back me up) that the most common case for
passing an array into the array's constructor would be when data types
are the same.  That case would be case to detect especially and use
memcpy for.

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


More information about the Python-bugs-list mailing list