Win a copy of Securing DevOps this week in the Security forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Balance between memory allocation and io connection?  RSS feed

 
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?
 
Without subsidies, chem-ag food costs four times more than organic. Or this tiny ad:
Thread Boost - a very different sort of advertising
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!