Re: Euphoria vs. other programming languages
- Posted by ghaberek (admin) Mar 04, 2009
- 1622 views
Critic said...
import pickle pickle.dump({"key": "value", "key2": "value2"}, open("mydata.dat", "wb+")) value = pickle.load(open("mydata.dat", "rb"))
Already I can see an advantage of EDS over pickle: EDS has tables, which allow me to separate my data into a more logical structure. I suppose a clever arrangement of lists may yield a similar result.
And how do you fetch only "key" or "key2" from the file? What if you've got one hundred keys? or ten thousand keys? or one million keys? Do you have to load the whole file back into memory at once then write it all back to disk if you only want to update one key? That seems rather... slow.
-Greg