How does one go about (asides from trail and error) to determine the amount of RAM required to store one's dataset?
I know this is a super general question, so, hopefully this example can narrow down what I am trying to understand:
I have a data file, the data file contains characters[A-Z] and numbers (no special symbols). I want to read the data into RAM (using python), then I store the data in a dictionary. I have a lot of data and computer with only 2 gigs of RAM, so I'd like to know ahead of time whether the data would fit into RAM as this could change the way I load the file with Python and handle the data downstream. I recognize that all the data may not all fit into RAM - but that's another problem, I just want to know how much RAM the data would take up and what I need to consider to make this determination.
So knowing the content of my file, it's initial size, and the downstream data structure I want to use, how can I figure out the amount of RAM the data will take-up?