Yeah, I did benchmark the compile speed when using jemalloc and mimalloc multiple times. Jemalloc seems has better performance in many small allocations. I haven't run the comparison in multithreaded device yet
I read somewhere in the internet that mimalloc uses higher memory because it preserve bigger memory pool size for fast allocation to the next allocations, so it has better chance of not frequently asking memory to the OS
Now I jusg figured out how to speed up compile speed singnificantly, far faster than scache
I tried it on tokio + serde, compiled within 1.7 second in initial compilation. While also saving SSD storage