JuliaPy / JuliaPy/PythonCall.jl

Python 3.13 with (modified) mimalloc

未關閉
#559 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
enhancement
主要語言
Julia
星號
1.1k
分支
86
平均合併
1 天 22 小時
30 天內合併 PR
3

描述

>A modified version of mimalloc is now included, optional but enabled by default if supported by the platform, and required for the free-threaded build mode.

https://github.com/python/cpython/issues/113141#issuecomment-2119255217

[I.e. likely for all platforms Julia support.] But it's unclear to me if this is a problem for using together since using different malloc.

I've tried before to switch out Julia's use of malloc for mimalloc (it didn't work, I though somebody made it work since).

In C, if you use an alternative malloc you must use its corresponding free, and that rule would translate to Python for its allocations. Julia would do similarily, but assuming still with Libc's standard malloc and free.

I'm just thinking, can you sometimes malloc (indirectly) by Python, then Julia would do the free, and it wouldn't work? Or vice versa?

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。