Tie-File-AsHash reviews

cpanratings
 

RSS | Module Info | Add a review of Tie-File-AsHash

Tie-File-AsHash (0.200) **

Cute little module that I really wanted to use and like.

My overall poor score is based on the fact that performance is really poor and becomes worse and worse as the number of records increases.

After 1000 records (on a pretty powerful UNIX machine) it becomes almost unusable.
For example, READING a simple hash of 9,848 key-value records took 2,627 seconds!
FYI: 1000 records took 20 secs
2000 -> 90 secs
3000 -> 214
4000 -> 393
5000 -> 629
6000 -> 925
7000 -> 1281
8000 -> 1698
9000 -> 2174
Pretty exponential!

Tie-File-AsHash (0.08) **

Trivial to use, does persistence automatically (transparently), but only handles single-level hashes.

$hash{foo}->{bar} = 'baz';

will silently not store anything in the tied file.

Good for simple use cases. If you need nested structures, check out DBM::Deep or KiokuDB.