jamesls / semidbm

Cross platform (fast) DBM interface in python
Other
51 stars 13 forks source link

Add non mmap based db loader #7

Closed jamesls closed 11 years ago

jamesls commented 11 years ago

This adds a non mmap based db loader to semidbm. This allows platforms that do not have mmap available to use a simple file based loader based on .read(). Part of this refactoring was pulling out the loaders into their own separate modules.

I've included some additional tools and updates to the benchmarking that makes is easier to test out the different loaders.

For the time being, creating a DBM object with a specific loader is an internal interface. It's pretty straightforward to do, but not officially part of the public API.

coveralls commented 11 years ago

Coverage Status

Coverage decreased (-0%) when pulling 2795d6acacb94a1417fabc1d0cdb51b16c6beeb8 on mmap-free into df648d0313c011075ec244791913537df6676824 on master.

coveralls commented 11 years ago

Coverage Status

Coverage decreased (-0%) when pulling 7b585bcecf5ec9c09c4a5bf94c7b2faa246a0b29 on mmap-free into df648d0313c011075ec244791913537df6676824 on master.