Message142280
| 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: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 |
|