问题
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