Message142280
"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... |
|
Date |
User |
Action |
Args |
2011-08-17 14:50:16 | sturlamolden | set | recipients:
+ sturlamolden, rhettinger, vstinner |
2011-08-17 14:50:16 | sturlamolden | set | messageid: <1313592616.66.0.558487940984.issue12754@psf.upfronthosting.co.za> |
2011-08-17 14:50:16 | sturlamolden | link | issue12754 messages |
2011-08-17 14:50:15 | sturlamolden | create | |
|