A
Ayushi Dalmia
Hello,
I have 10 files and I need to merge them (using K way merging). The size ofeach file is around 200 MB. Now suppose I am keeping the merged data in a variable named mergedData, I had thought of checking the size of mergedDatausing sys.getsizeof() but it somehow doesn't gives the actual value of thememory occupied.
For example, if a file in my file system occupies 4 KB of data, if I read all the lines in a list, the size of the list is around 2100 bytes only.
Where am I going wrong? What are the alternatives I can try?
I have 10 files and I need to merge them (using K way merging). The size ofeach file is around 200 MB. Now suppose I am keeping the merged data in a variable named mergedData, I had thought of checking the size of mergedDatausing sys.getsizeof() but it somehow doesn't gives the actual value of thememory occupied.
For example, if a file in my file system occupies 4 KB of data, if I read all the lines in a list, the size of the list is around 2100 bytes only.
Where am I going wrong? What are the alternatives I can try?