Data size in memory vs. on disk
问题 How does the RAM required to store data in memory compare to the disk space required to store the same data in a file? Or is there no generalized correlation? For example, say I simply have a billion floating point values. Stored in binary form, that\'d be 4 billion bytes or 3.7GB on disk (not including headers and such). Then say I read those values into a list in Python... how much RAM should I expect that to require? 回答1: Python Object Data Size If the data is stored in some python object,