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, eryksun
Date 2016-09-01.15:57:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1472745478.01.0.259611267123.issue27926@psf.upfronthosting.co.za>
In-reply-to
Content
Thank you for these explanations.

I understand that we get a generic function to the cost of performances.

However, I think we should at least tell in the documentation that the constructor (ctypes.c_uint32 * len(t))(*t) is slow and that we can do much faster in some specific cases (e.g. an array of integers).

It would be even better to have some specific method(s) to do this in ctypes, instead of having to rely on an array.array just to build a ctypes array from a list. I am not familiar with CPython code, so I do not know if it would be easily feasible.
History
Date User Action Args
2016-09-01 15:57:58Tom Cornebizesetrecipients: + Tom Cornebize, eryksun
2016-09-01 15:57:58Tom Cornebizesetmessageid: <1472745478.01.0.259611267123.issue27926@psf.upfronthosting.co.za>
2016-09-01 15:57:57Tom Cornebizelinkissue27926 messages
2016-09-01 15:57:57Tom Cornebizecreate