![I use an object, dictionary, and array to store the same data separately. When there are 1.6 million copies of data, the difference in memory size occupied by them is very large. I use an object, dictionary, and array to store the same data separately. When there are 1.6 million copies of data, the difference in memory size occupied by them is very large.](https://preview.redd.it/i-use-an-object-dictionary-and-array-to-store-the-same-data-v0-q41eo16od4hc1.png?width=640&crop=smart&auto=webp&s=a0cd484e41b22a1c0b2c49fb5da77ba502d6e49d)
I use an object, dictionary, and array to store the same data separately. When there are 1.6 million copies of data, the difference in memory size occupied by them is very large.
![Unexpected Size of Python Objects in Memory | by Naser Tamimi | Jan, 2021 | Towards Data Science | Towards Data Science Unexpected Size of Python Objects in Memory | by Naser Tamimi | Jan, 2021 | Towards Data Science | Towards Data Science](https://miro.medium.com/v2/resize:fit:1400/1*V126qV4BGBuaVQY83BuIpg.png)
Unexpected Size of Python Objects in Memory | by Naser Tamimi | Jan, 2021 | Towards Data Science | Towards Data Science
![Unexpected Size of Python Objects in Memory | by Naser Tamimi | Jan, 2021 | Towards Data Science | Towards Data Science Unexpected Size of Python Objects in Memory | by Naser Tamimi | Jan, 2021 | Towards Data Science | Towards Data Science](https://miro.medium.com/v2/resize:fit:1200/1*_jlWjYqsunSYJARrU3h4uA.jpeg)