阅读背景:

如何在Python中设置字典的初始大小?

来源:互联网 

I'm putting around 4 million different keys into a Python dictionary. Creating this dictionary takes about 15 minutes and consumes about 4GB of memory on my machine. After the dictionary is fully created, querying the dictionary is fast.I'm putting around 4 million different keys int




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: