registry: spare useless I/O
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Sat, 21 Feb 2009 23:25:35 +0000 (00:25 +0100)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Sun, 22 Feb 2009 00:58:05 +0000 (01:58 +0100)
commit1f0d0215fc076a921258d969b2022721ae05b71a
treeef6eaf3069d4ba566e24ce0ffcf49748b83402b8
parent783ffa4235330029d661752b1023db635b26f2b3
registry: spare useless I/O

The each_key()/each_value() methods of the accessor relied on the each()
method of the database, wasting I/O bandwidth and time by loading
unnecessary data (particularly when running each_key() on databases with
ridiculously enormous values such as in the markov plugin case).
lib/rbot/registry.rb