本文介绍了C#DIctionary size limit的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 大家好, 我有一个由几个字符串和int成员组成的A类。 我想管理大量的(几千个) )A对象 在字典中每个对象都有其唯一的密钥。 是否有任何已知的限制或最佳实践,您认为我应该 考虑? 谢谢, Orsula.z Hi Guys, I have a class A composed of several string and int members.I would like to manage a huge amount (several thousands) of A objectsin a dictionary where each object has its unique key. Is there any known limitation or best practice that you think I shouldconsider? Thanks,Orsula.z推荐答案 几千实际上相当小。基本上如果你已经在内存中为对象和一点开销留出了足够的空间,那么 字典应该没问题。 Jon "Several thousand" is actually reasonably small. Basically if you''vegot enough room in memory for the objects and a bit of overhead, thedictionary should be fine. Jon 几千实际上相当小。基本上如果你已经在内存中为对象和一点开销留出了足够的空间,那么 字典应该没问题。 Jon "Several thousand" is actually reasonably small. Basically if you''vegot enough room in memory for the objects and a bit of overhead, thedictionary should be fine.Jon 谢谢(再次:))Jon Thanks (again :) ) Jon 这篇关于C#DIctionary size limit的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 10-31 10:53