Alexander Belopolsky <alexander.belopol...@gmail.com> added the comment:
Attached patch makes array(t, a) use memcpy when t == a.typecode. The code array_new can probably be refactored to eliminate redundant checks, but with a good C compiler this probably have no performance effect. While refactoring can simplify the code, it will probably complicate the patch. ---------- keywords: +patch nosy: +Alexander.Belopolsky versions: +Python 2.7 -Python 2.6 Added file: http://bugs.python.org/file17157/issue5109.diff _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue5109> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com