Injecting alternative memory allocators (mimalloc, tbbmalloc etc.) for performance gain

There are many games that could have performance benefits from alternative memory allocators, but most just use the default VC++ allocator, and the few that don’t, usually stick with tbbmalloc.

This feature, ideally, would be a generic solution that would overwrite all memory calls to whichever memory allocator is being injected. Mimalloc (GitHub - microsoft/mimalloc: mimalloc is a compact general purpose allocator with excellent performance.) would be my first choice, as it’s usually easier to utilize as a third-party replacement, and in my experience, has the best performance. If this is implemented, adding options to enable HugePages support in the allocator would be an additional benefit.