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 sturlamolden
Recipients rhettinger, sturlamolden, vstinner
Date 2011-08-17.14:50:15
SpamBayes Score 3.3917684e-07
Marked as misclassified No
Message-id <1313592616.66.0.558487940984.issue12754@psf.upfronthosting.co.za>
In-reply-to
Content
"The problem is that the Python API can only produce one number per call and a function call in Python is really slow (it creates a Python frame). If you want to speed it Python, it would be better to add methods to generate arrays to limit the overhead of Python function calls."


That is why I suggested an option to return a raw buffer (e.g. bytearray or memory_view). 

My experience with NumPy and MATLAB tells me that random numbers are nearly always needed in arrays with scripting languages.

But I cannot focus my thoughts...
History
Date User Action Args
2011-08-17 14:50:16sturlamoldensetrecipients: + sturlamolden, rhettinger, vstinner
2011-08-17 14:50:16sturlamoldensetmessageid: <1313592616.66.0.558487940984.issue12754@psf.upfronthosting.co.za>
2011-08-17 14:50:16sturlamoldenlinkissue12754 messages
2011-08-17 14:50:15sturlamoldencreate