Version 2.6 Final !free! — Cdb-library
CDB excels at read-heavy, static datasets. A typical use case is mapping IP ranges to country codes. With version 2.6 final's 64-bit support, you can now store the full IPv6 address space efficiently.
The latest version of CDB-Library, 2.6 Final, comes with several exciting features and improvements. Some of the key highlights include: cdb-library version 2.6 final
Here is a minimal example demonstrating how to create and query a database using version 2.6 final’s API: CDB excels at read-heavy, static datasets
CDB remains astonishingly fast for reads. The 2.6 final release improves write performance slightly due to reduced lseek() calls in cdb_make_add . The latest version of CDB-Library, 2
Example using cdb-get:
While cdbdump has always existed, version 2.6 adds a -j flag to output entries as newline-delimited JSON. Example:
// Query the database struct cdb cdb; cdb_init(&cdb, open("data.cdb", O_RDONLY));