Using custom memory allocators is an efficient performance optimization technique. However, dependency on a custom allocator can introduce several maintenance-related issues. We present lessons learned from the industry and provide critical guidance for using custom memory allocators and enumerate various challenges associated with integrating them. These recommendations are based on years of experience incorporating custom allocators into different industrial software projects.
翻译:使用自定义内存分配器是一种高效的性能优化技术,但依赖自定义分配器可引入若干与维护有关的问题,我们介绍从该行业吸取的经验教训,为使用自定义内存分配器提供重要指导,并列举与整合这些装置相关的各种挑战,这些建议基于将自定义分配器纳入不同工业软件项目多年的经验。