in reply to Re^4: Algoritm for converting string to number?
in thread Algoritm for converting string to number?

That has several downsides. One is that each time you add a single key, you have to write the whole data file.

Another is that you have to deal with concurrent accesses yourself.

And a third is that your data is lost if the program is killed while writing the file. D'oh.

Better to use a ready-made, battle-tested solution like sqlite (or maybe berkeleydb) which deals with these problems for you.

  • Comment on Re^5: Algoritm for converting string to number?

Replies are listed 'Best First'.
Re^6: Algoritm for converting string to number?
by raybies (Chaplain) on Aug 23, 2011 at 13:51 UTC

    Heh. Funny. I've run into all these problems before, so yeah, I concede your point. Well said.

    Still, for prototyping... it sure is quick and dirty. :D