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 Tom Cornebize
Recipients Tom Cornebize
Date 2016-09-01.09:31:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1472722275.26.0.560476389343.issue27926@psf.upfronthosting.co.za>
In-reply-to
Content
It is much faster to construct a Python array from the list and then cast this array, rather than using the "standard" constructor. See attached file to compare the performances.

This issue was previously asked on Stackoverflow: http://stackoverflow.com/questions/39225263/why-is-ctypes-so-slow-to-convert-a-python-list-to-a-c-array/
History
Date User Action Args
2016-09-01 09:31:15Tom Cornebizesetrecipients: + Tom Cornebize
2016-09-01 09:31:15Tom Cornebizesetmessageid: <1472722275.26.0.560476389343.issue27926@psf.upfronthosting.co.za>
2016-09-01 09:31:15Tom Cornebizelinkissue27926 messages
2016-09-01 09:31:15Tom Cornebizecreate