JuliaPy / JuliaPy/PythonCall.jl

Python 3.13 with (modified) mimalloc

Ouverte
#559 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub
enhancement
Langage dominant
Julia
Étoiles
1.1k
Forks
86
Merge moyen
1 j 22 h
PR mergées (30 j)
3

Description

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

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.