• Post Reply Bookmark Topic Watch Topic
  • New Topic

Balance between memory allocation and io connection?  RSS feed

 
HaoZhe Xu
Ranch Hand
Posts: 222
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am writing a game, it requireds reading data that stored in 'disk' (phone's storage), it's about 30kb, and the program use data frequently, so i can either read all data into memory or read single item from storage when using it(slow), so which way do you prefer, the fast but more memory use or the less memory use but slow?
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!