垃圾收集C ++中的库 [英] Garbage collection Libraries in C++

查看:130
本文介绍了垃圾收集C ++中的库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么免费的和商业的垃圾收集库可用于C ++,每个的优点和缺点是什么?



我对来自实际的



没有必要详细说明与自动垃圾收集相关的通常权衡,但请提及所使用的算法(参考计数,标记和扫描,增量等),并简要总结后果。

解决方案

href =http://hboehm.info/gc/> Boehm收藏家在过去取得良好的成功。它是开源的,可以在商业软件中使用。



这是一个保守的收藏家,并且是垃圾收集技术最重要的研究者之一。 / p>

What free and commercial garbage collection libraries are available for C++, and what are the pros and cons of each?

I am interested in hard-won lessons from actual use in the field, not marketing or promotional blurb.

There is no need to elaborate on the usual trade offs associated with automatic garbage collection, but please do mention the algorithms used (reference counting, mark and sweep, incremental, etc.) and briefly summarise the consequences.

解决方案

I have used the Boehm collector in the past with good success. It's open source and can be used in commercial software.

It's a conservative collector, and has a long history of development by one of the foremost researchers in garbage collection technology.

这篇关于垃圾收集C ++中的库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆