Old Is Gold: Optimizing Single-Threaded Applications with Exgen-Malloc
9 days ago
- #Single-threaded Optimization
- #Memory Allocator
- #Performance Improvement
- Memory allocators significantly impact application performance and efficiency, even with small inefficiencies.
- Modern memory allocators are optimized for multi-threaded environments, introducing overhead that may not be necessary for single-threaded applications.
- Exgen-Malloc is introduced as a memory allocator specifically designed for single-threaded applications, eliminating unnecessary metadata and simplifying control flow.
- Key features of Exgen-Malloc include a centralized heap, a single free-block list, and strategies for memory commitment and relocation.
- Exgen-Malloc outperforms dlmalloc with speedups of 1.17x, 1.10x, and 1.93x on SPEC CPU2017, redis-benchmark, and mimalloc-bench, respectively.
- It also achieves memory savings of 6.2%, 0.1%, and 25.2% over mimalloc on the same benchmarks.