Message261501
| Author |
vstinner |
| Recipients |
njs, vstinner |
| Date |
2016年03月10日.14:17:10 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1457619430.68.0.0968942184372.issue26530@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
The API of Python memory allocators was extended for numpy: calloc() was added (issue #21233). It looks like it's not enough because allocations with an alignment is also required for vector operations (SIMD). For Python, there is the issue #18835 but the benefit for Python code is unclear or negligible.
Instead of extending the API each time, it would be simpler to add an API to allow third party memory allocators to track/untrack memory in tracemalloc. I guess that the API should make the assumption that the GIL is not hold and so try to acquire the GIL (if it's not already hold).
Related numpy issue: https://github.com/numpy/numpy/issues/4663
See also: https://mail.scipy.org/pipermail/numpy-discussion/2015-January/072068.html |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2016年03月10日 14:17:10 | vstinner | set | recipients:
+ vstinner, njs |
| 2016年03月10日 14:17:10 | vstinner | set | messageid: <1457619430.68.0.0968942184372.issue26530@psf.upfronthosting.co.za> |
| 2016年03月10日 14:17:10 | vstinner | link | issue26530 messages |
| 2016年03月10日 14:17:10 | vstinner | create |
|