Alternatives to keeping large lists in memory (python)

后端 未结 9 1379
再見小時候
再見小時候 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:44

    You might want to consider a different kind of structure: not a list, but figuring out how to do (your task) with a generator or a custom iterator.

提交回复
热议问题