Repository navigation
Releases
Releases · Rana718/FyroDB
FyroDB v0.6.0
FyroDB 0.6.0 Release Notes
Concurrency & Lock Modernization
parking_lot& Atomic Primitives: Replaced heavy OSstd::sync::MutexandRwLockprimitives with lightweightparking_lotlocks 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_strandprobe_entry_matching_byteswith circulartable.maskwrapping across 16-slot probe windows to eliminate false tag collision misses and premature table scans. - Relaxed Slot Loads: Converted probe loops to use
Relaxedslot loads with anAcquirebarrier 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 == 0fast path to avoid thread-localDIRTYaccesses when no deferred garbage is queued. - String Key Hinted Fast Path: Upgraded
get_to_buf_hintedto 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/EXECtransfers and 103,798MGETbalance audits with 0 isolation violations.
FyroDB v0.5.0
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-inio_uringbatched socket transmission via Docker Compose (FYRODB_IO_URING=1) with transparent, zero-overhead fallback tosend(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
ZSetDataand 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@v5to 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.