(C) 堆分配器的实现策略?
哪里有一些好的资源可以帮助您了解实现堆分配器的不同方法的优缺点?优先考虑涉及效率(碎片、吞吐量等)的资源。我不是在寻找简单的代码存储库。
编辑:
我对这个维基的哲学基础并不真正感兴趣。因此,我真的不想探究“为什么”我对此感兴趣。无论潜在的意图/问题/等等如何,这些信息都存在,所以如果您知道任何好的资源,请在此处链接到它们!
Where are some good resources for looking at the pros/cons of different ways of implementing heap allocators? Resources touching on efficiency (fragmentation, throughput, etc) are preferred. I am NOT looking for simple code repositories.
edit:
I'm not really interested in the philosophical grounding of this wiki. As such, I don't really want to get into 'why' I'm interested in this. Regardless of the underlying intentions/problems/etc, this information exists, so if you know of any good resources, please link to them here!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是一个非常古老的问题,要获得全面的了解,您必须深入研究研究文献。 (我不知道有什么好的教科书处理方法。)
有几个地方可以开始:
Doug Lea 对其内存分配器的描述
计算机编程艺术,第 1 卷,作者:Don Knuth
快速拟合:一种高效的堆存储分配算法 作者:Weinstock 和 Wulf
这个算法值得在图书馆呆上一天。是的,一座装满纸张的大楼——问题就这么老了。
This is a very old problem, and to get a comprehensive view you will have to dig through the research literature. (I'm not aware of a good textbook treatment.)
A few places to start:
Doug Lea's description of his memory allocator
The Art of Computer Programming, Volume 1 by Don Knuth
Quick fit: an efficient algorithm for heap storage allocation by Weinstock and Wulf
This one is worth spending a day in the library. Yes, a big building full of paper—the problem is that old.