Small objects allocator

不问归期 提交于 2020-01-23 06:16:56

问题


Has anybody used SmallObjectAllocator from Modern C++ Design by Andrei Alexandrescu in a big project? I want to implement this allocator but I need some opinions about it before using it in my project. I made some tests and it seems very fast, but the tests were made in a small test environment. I want to know how fast it is when are lots of small objects(like events, smart pointers, etc) and how much extra memory it uses.


回答1:


I suggest you ask Rich Sposato. He has done extensive work on Loki's small object allocator, including testing and benchmarks.




回答2:


Have you considered using Boost Pool Library ?



来源:https://stackoverflow.com/questions/2984434/small-objects-allocator

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!