JuliaPy / JuliaPy/PythonCall.jl

Python 3.13 with (modified) mimalloc

Đang mở
#559 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
enhancement
Ngôn ngữ chính
Julia
Star
1.1k
Fork
86
Merge trung bình
1 ngày 22 giờ
Pull request đã merge (30 ngày)
3

Mô tả

>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?

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.