in reply to Re^3: Memory Efficient Alternatives to Hash of Array
in thread Memory Efficient Alternatives to Hash of Array
The most important is when you have existing code and a data set that is just a little bit too big to handle in RAM. You don't want to rewrite your code, so you use DBM::Deep and it will work, if slowly.
A second case is when you have a pre-built data structure that you need to access. For instance you have a local index that you look things up in when serving a web page. Sure, building it is slow. But a typical web request is going to just do a lookup, which will be plenty fast. As long as you are grabbing a small amount of data each time, it will be quick.
But as cool as it is, it has limitations due to the physical limitations of machines, and you sometimes need to be aware of them.
|
|---|