Alternatives to keeping large lists in memory (python)

后端 未结 9 1356
再見小時候
再見小時候 2020-12-08 16:50

If I have a list(or array, dictionary....) in python that could exceed the available memory address space, (32 bit python) what are the options and there relative speeds? (o

9条回答
  •  抹茶落季
    2020-12-08 17:47

    Well, if you are looking for speed and your data is numerical in nature, you could consider using numpy and PyTables or h5py. From what I remember, the interface is not as nice as simple lists, but the scalability is fantastic!

提交回复
热议问题