Alternatives to keeping large lists in memory (python)

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

    You can try blist: https://pypi.python.org/pypi/blist/

    The blist is a drop-in replacement for the Python list the provides better performance when modifying large lists.

提交回复
热议问题