Hi, I happen to be the maintainer of
snmalloc-rs and it may be possible to add support of snmalloc to
tikv_alloc, whose performance is at the same level of mimalloc and seems to perform a little bit better in some async runtimes in my previous test; but it is implemented in C++, so extra c++ runtime is needed (libatomic, libstdc++).
However, I am little confused about the current allocator configuration. It seems that
jemalloc has a primitive support for stats (I say primitive support because I see lots of TODOs there) but it is not the case for other allocators.
In fact, both mimalloc and snmalloc has comprehensive builtin support for stats, it should be easy to utilize the stats FFIs. So, is the stats feature used heavily or it is not that important?