Gecode / gecode

Generic Constraint Development Environment
https://www.gecode.org
Other
275 stars 76 forks source link

Add jemalloc\tcmalloc allocators #182

Open anovoselcev opened 11 months ago

anovoselcev commented 11 months ago

This patch add jemalloc and tcmalloc allocators support. I've investigated that it helps to reach better performance and memory consumption in parallel search context.

zayenz commented 10 months ago

Thanks for this proposal. I am, however, unsure if it is the right way to go, at least right now.

Personally, I've used mimalloc when using Gecode in a multi-threaded setting on a Mac, as it gives a significant performance boost. However, as Gecode is often used as a library that is built into another system, hopefully the allocator used is coming from outside of Gecode anyway.