• Post Reply Bookmark Topic Watch Topic
  • New Topic

in file vs memory  RSS feed

 
James O Brien
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What are the advantages implementing data in a file rather than in memory???
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I can think of two: disk files don't go away when the program ends, and disk space is cheaper than RAM.
 
Jonathan Locke
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yup. And one more: your disk access will take several orders of magnitude longer than your memory access.
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Jonathan Locke:
Yup. And one more: your disk access will take several orders of magnitude longer than your memory access.

True. It's a little bit hard to think of that as an *advantage*, though...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!