4 releases

0.0.4 Jan 9, 2023
0.0.3 Dec 2, 2022
0.0.2 Nov 14, 2022
0.0.1 Jun 9, 2022

#7 in #photon

41 downloads per month
Used in photondb-tools

MIT license

535KB
13K SLoC

A high-performance storage engine for modern hardware and platforms.

PhotonDB is designed from scratch to leverage the power of modern multi-core chips, storage devices, and operating systems.

Features:

  • Latch-free data structures, scale to many cores.
  • Log-structured persistent stores, optimized for flash storage.
  • Asynchronous APIs and efficient file IO, powered by io_uring on Linux.

This crate provides three sets of APIs:

  • Raw: a set of low-level APIs that can run with different environments.
  • Std: a set of synchronous APIs based on the raw one that doesn't require a runtime to run.
  • Photon: a set of asynchronous APIs based on the raw one that must run with the PhotonIO runtime.

The Photon APIs are the default and are re-exported to the top-level module for convenience.

Dependencies

~6–13MB
~159K SLoC