在C#中使用弱引用的GC成本?
发布时间:2020-12-15 07:54:01 所属栏目:百科 来源:网络整理
导读:在 another question,Stephen C说: A second concern is that there are runtime overheads with using weak references. The obvious costs are those of creating weak references and calling get on them. A less obvious cost is that significant ext
在
another question,Stephen C说:
那么弱参考的GC的成本到底是多少?它需要做多少额外的工作,以及它有多大的交易?我可以做一些有根据的猜测,但我对实际的机制很感兴趣. 解决方法
请查看杰弗里里希特关于
Memory Management in .NET的文章,它必须清理一下.
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |