小对象分配器

扫码查看
本文介绍了小对象分配器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人在现代C ++设计中使用SmallObjectAllocator由Andrei Alexandrescu在一个大项目?我想实现这个分配器,但我需要一些意见之前使用它在我的项目。我做了一些测试,它似乎非常快,但测试是在一个小的测试环境。我想知道当有很多小对象(如事件,智能指针等)以及它使用多少额外内存时有多快。

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.

推荐答案

我建议您询问。他对Loki的小对象分配器做了大量的工作,包括测试和基准测试。

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

这篇关于小对象分配器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-27 07:41
查看更多