Skip to content

Releases

FyroDB v0.6.0

Choose a tag to compare

@github-actions github-actions released this 22 Nov 14:30

FyroDB 0.6.0 Release Notes

Concurrency & Lock Modernization

  • parking_lot & Atomic Primitives: Replaced heavy OS std::sync::Mutex and RwLock primitives with lightweight parking_lot locks and atomic flags (AtomicBool, AtomicU64, ArcSwap), accelerating lock contention throughput from 7.44 Mops/s to 76.57 Mops/s (>10x faster).
  • Dead Code Cleanups: Purged unreferenced code and removed obsolete #[allow(dead_code)] annotations across the workspace.

Storage Engine & CustomHash Probing

  • Exact-Match Probing: Implemented TaggedSlot::probe_entry_matching_str and probe_entry_matching_bytes with circular table.mask wrapping across 16-slot probe windows to eliminate false tag collision misses and premature table scans.
  • Relaxed Slot Loads: Converted probe loops to use Relaxed slot loads with an Acquire barrier only on 15-bit tag matches.
  • Optimistic Seqlock Inline String Reads: Added seqlock validation for inline strings (≤ 23 bytes) with stack copying (s_copy) before serializing, eliminating two reader atomic CAS operations per read with 100% anti-tearing safety.
  • Zero-Overhead EBR Guard Drops: Added PENDING == 0 fast path to avoid thread-local DIRTY accesses when no deferred garbage is queued.
  • String Key Hinted Fast Path: Upgraded get_to_buf_hinted to use direct string probing without byte slice conversion.

Performance Gains

  • Point GET: 8.21 Mops/s → 11.67 Mops/s (+42.1%).
  • Point SET: 4.74 Mops/s → 4.82 Mops/s.
  • Mixed SET/GET (50/50): 37.48M ops/sec → 38.41M ops/sec.
  • Pipeline-64 SET: 25.71M ops/sec → 28.29M ops/sec (+10.0%).
  • JSON.GET: 47.26M ops/sec → 65.13M ops/sec (+37.8%).
  • PFADD / PFCOUNT: 248.24M ops/sec → 307.17M ops/sec (+23.7%).
  • Hardware Core Scaling: 6-thread GET reaches 36.30 Mops/s (5.05x scaling on 6 cores).
  • TCP Benchmark: Over 200,000 req/sec across SET, GET, INCR, and MSET with p50 latencies of 0.127 ms.

Concurrency & Isolation Verification

  • Anti-Tearing Test: 72,186 writes and 54,822 reads across inline and heap strings with 0 torn reads and 0 CRC32 checksum errors.
  • Transactional Isolation: 32,190 MULTI/EXEC transfers and 103,798 MGET balance audits with 0 isolation violations.

FyroDB v0.5.0

Choose a tag to compare

@github-actions github-actions released this 21 Nov 06:16
29ffd88

FyroDB 0.5.0 Release Notes

Distributed Cluster & Replication

  • Resilient Cluster Failover: Hardened node state machine transitions, epoch increment coordination, and dynamic topology routing tables under network partitions.
  • Formal Verification of Slot Ranges: Added SMT machine-checked proofs in Verus (proofs/verus/slot_ranges.rs) proving slot boundary completeness and non-overlapping range invariants across all 16,384 hash slots.
  • Multi-Node Cluster E2E Harness: Added Python multi-node cluster E2E integration test suite (tests/e2e/python/cluster_e2e.py) and cluster Go benchmarks (bench/cluster.go).
  • Mutation Log & Streaming Replication: Overhauled the replication log with 64-bit monotonic offsets, atomic snapshot handoffs, and real-time lag tracking.

Persistence & Data Integrity

  • AOF Multi-Writer Window Ordering: Fixed sequence number assignment and window refill races across concurrent worker threads, verified by formal models in proofs/verus/aof_sequence.rs.
  • RDB Corruption Defenses: Hardened snapshot restore routines to validate RDB header magic, slot mappings, and CRC checksums before committing table state.
  • Quiescent Write Fence: Enhanced write ticket barriers (WriteFence) to guarantee total keyspace quiescence during snapshot creation and slot migrations.

High-Throughput I/O & Networking

  • Configurable io_uring: Added runtime opt-in io_uring batched socket transmission via Docker Compose (FYRODB_IO_URING=1) with transparent, zero-overhead fallback to send(2).
  • Edge-Triggered Connection Ingress: Optimized ingress buffers and pre-allocated command scratch structures for edge-triggered mio polling.

Data Structures & Memory Optimization

  • QuickList Allocation Right-Sizing: Tuned slotted chunk pre-allocation to eliminate heap allocations during queueing bursts.
  • Sorted Set Vector Optimization: Refined chunked vector balancing in ZSetData and streamlined 64-bit member Bloom filter bit checking.
  • CompactKey Binary Safety: Hardened 64-bit unaligned word copies for arbitrary binary keys without allocations.

CI/CD Intelligence & Release Workflows

  • Intelligent CI Routing: Optimized GitHub Actions workflows so full suites run on PR open, fast checks (test, lint, verus) run on every push, and heavy Docker E2E and benchmarks execute on dedicated labels (test-case, e2e-testcase, benchmark-validation).
  • Automated PR Labeling: Integrated actions/labeler@v5 to tag PRs automatically based on changed files.
  • Automated Versioned Changeset Releases: Integrated tag-triggered GitHub Release workflow reading scoped notes directly from .changeset/<version>-changeset.md.