在我的测试中,Xamarin.iOS 似乎总是使用两代。那是,GC.MaxGeneration
总是返回1
. The Xamarin 跨平台性能文档 https://developer.xamarin.com/guides/cross-platform/deployment,_testing,_and_metrics/memory_perf_best_practices/#sgen似乎通过参考来支持这一点Mono SGen 文档 http://www.mono-project.com/docs/advanced/garbage-collector/sgen/,其中指出SGen使用两代。另一方面,GC.MaxGeneration 的 Xamarin API 文档 https://developer.xamarin.com/api/property/System.GC.MaxGeneration/表明 MaxGeneration 可以随着时间的推移而增加。
Is GC.MaxGeneration
在 Xamarin.iOS 中已修复,或者如果有足够的时间它可以增加吗?
另外,以防万一:去年的行为是否发生了变化?提问原因:除了Xamarin iOS 的当前稳定版本 https://releases.xamarin.com/category/stable/,我们正在使用周期 6 服务版本 4 https://releases.xamarin.com/stable-release-cycle-6-service-release-4/修复旧产品的错误。
None
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)