mkitti / ArrayAllocators.jl

Allocate arrays with malloc, calloc, or on NUMA nodes
MIT License
53 stars 1 forks source link

jemalloc based ArrayAllocator? #9

Open mkitti opened 2 years ago

mkitti commented 2 years ago

There is a jemalloc_jll: https://github.com/JuliaBinaryWrappers/jemalloc_jll.jl

We could build ArrayAllocators around jemalloc.

chengchingwen commented 2 years ago

~There was an issue on julialang discussing about allowing julia to be built with jemalloc, but iirc they got a conclusion that we didn't benefit from using it. Would that be different with this package?~

mkitti commented 2 years ago

This would allow you to use jemalloc from Julia code within the standard array syntax. It sounds like this may be of interest for you?

chengchingwen commented 2 years ago

I double checked that issue and found that I didn't remember it correctly. It would definitely be interesting to have (though I don't really have a test case)