阅读背景:

在python中存储和使用大型文本文件的最佳方法

来源:互联网 

I'm creating a networked server for a boggle-clone I wrote in python, which accepts users, solves the boards, and scores the player input. The dictionary file I'm using is 1.8MB (the ENABLE2K dictionary), and I need it to be available to several game solver classes. Right now, I have it so that each class iterates through the file line-by-line and generates a hash table(associative array), but the more solver classes I instantiate, the more memory it takes up.I'm creating a networked server for a boggle-cl




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

分享到: