arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1611.01667cs.PL
收藏

C++中可遍历的固定大小小对象分配器

A Traversable Fixed Size Small Object Allocator in C++

Christian Schuessler, Roland Gruber

摘要:

在对固定大小的小对象进行分配和释放时,运行时系统的标准分配器通常比适合特定应用领域的分配器具有更差的时间性能。我们提出了一个内存分配器,最初开发的网格图元,但也可用于任何其他小的同样大小的对象。对于大量的对象,它比使用C++new指令分配数据带来更好的结果,并且表现得更差。建议的同步方法,这个分配器的行为锁自由在实际情况下,不使用机器指令,如比较和交换。集成了遍历结构,比使用STL向量或列表等容器需要更少的内存,但具有相当的时间性能。

英文摘要:

At the allocation and deallocation of small objects with fixed size, the standard allocator of the runtime system has commonly a worse time performance compared to allocators adapted for a special application field. We propose a memory allocator, originally developed for mesh primitives but also usable for any other small equally sized objects. For a large amount of objects it leads to better results than allocating data with the C ++new instruction and behaves nowhere worse. The proposed synchronization approach for this allocator behaves lock-free in practical scenarios without using machine instructions, such as compare-and-swap. A traversal structure is integrated requiring less memory than using containers such as STL-vectors or lists, but with comparable time performance.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑