How To Reduce Python Script Memory Usage

后端 未结 5 967
庸人自扰
庸人自扰 2021-01-30 03:00

I have a very large python script, 200K, that I would like to use as little memory as possible. It looks something like:

# a lot of data structures
r = [34, 78,         


        
5条回答
  •  长情又很酷
    2021-01-30 03:06

    This video might give you some good ideas: http://pyvideo.org/video/451/pycon-2011---quot-dude--where--39-s-my-ram--quot-

提交回复
热议问题