galvanize 0.0.1

Pure Rust CDB library.
Documentation
  • Coverage
  • 96.43%
    27 out of 28 items documented3 out of 20 items with examples
  • Size
  • Source code size: 35.53 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 858.11 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 11s Average build duration of successful builds.
  • all releases: 11s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • estebank/galvanize
    18 3 1
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • estebank

Galvanize: Pure Rust CDB library Build Status

Manipulate DJB's Constant Database files. These are 2 level disk-based hash tables that efficiently handle thousands of keys, while remaining space-efficient.

Constant databases have the desirable property of requiring low overhead to open.

#What is it?

cdb is a fast, reliable, simple package for creating and reading constant databases. Its database structure provides several features:

  • Fast lookups: A successful lookup in a large database normally takes just two disk accesses. An unsuccessful lookup takes only one.
  • Low overhead: A database uses 2048 bytes, plus 24 bytes per record, plus the space for keys and data.
  • No random limits: cdb can handle any database up to 4 gigabytes. There are no other restrictions; records don't even have to fit into memory. Databases are stored in a machine-independent format.
  • Fast atomic database replacement: cdbmake can rewrite an entire database two orders of magnitude faster than other hashing packages.
  • Fast database dumps: cdbdump prints the contents of a database in cdbmake-compatible format.

cdb is designed to be used in mission-critical applications like e-mail. Database replacement is safe against system crashes. Readers don't have to pause during a rewrite.


Originally based on dw/python-pure-cdb (Pure Python CDB Library).