Quote:
Originally Posted by © Haydz
Im not saying anything, but imo yes they are :)
|
It's not opinion that binary files are grossly better for performance, It's hard fact. Are you trying to teach us something new? Because this is the basic of the basic.
Whether binary files are "better" is debatable though. Performance isn't everything. With binary files, you are required to write format specific code, and provide editors for modifying any data. That problem isn't as apparent with text files.
Databases are format-independent binary files which offer the both of best. There isn't much to debate here: Databases are the superior choice.
Quote:
Originally Posted by © Haydz
People would never be loading this amount of data at once, unless your being stupid and loading ALL this data to an array, when it should be inline.
|
Compare the speed of reading through the entire contents of a file held in memory and one held on your hard drive before you make such ridiculous remarks. If you're going to access any piece of data quickly, or multiple times, it should be placed into memory when the application starts. Provided you have enough memory that your application isn't thrashing, load as much as you can into it. (Memory is cheap, you shouldn't be worrying if your server uses up a gig or few of it.) If you have several gigs of data and holding it in memory is out of the question, you should be using an SSD.