title: Is it advisable to store large strings in memory, or repeatedly read a file?
body: <p>Let's say I have various text/json/xml/whatever files (stored locally, in the assets directory), ranging in size from 20 - 500 KB.  Assuming these files are going to be referenced frequently, throughout the application, is it better to:</p>
  
  <p>A) Read the file once, the first time it's requested, and store the data in a variable</p>
  
  <p>or</p>
  
  <p>B) Read the file each time it's requested, grab the requested bit of information, and allow GC to clean up afterward?</p>
  
  <p>Coming from web-dev, I generally use option (A), but I wonder if the storage limitation of mobile devices makes B preferred in this context (Android app development).</p>
  
  <p>TYIA.</p>