Skip to content

⚡ B-FAST v1.6.1 - Sub-Microsecond Rust Engine & Ultra-High-Throughput Streaming

Choose a tag to compare

@marcelomarkus marcelomarkus released this 24 Sep 16:38
· 40 commits to main since this release
8f0b23a

🚀 What's New in v1.6.1

⚡ Sub-Microsecond Rust Core Engine

  • Sub-Microsecond Latency: Encodes 100 structured objects in 676 ns (2.1x speedup, > 1.47M ops/sec) and decodes in 754 ns (2.6x speedup, > 1.32M ops/sec).
  • Linear Scaling: ~6.8 ns per object for ultra-dense telemetry and microservices.
  • Cached Process Singletons: L1 cache probing for Python singletons (None, True, False, small integers 0..15).
  • Interned String Table: String keys interned during decoding with instant pointer comparison (ep->me_key == key) for dictionary lookups.
  • Zero intermediate conversions for float/double lists.
  • Zero-Allocation Buffers: In-place thread-safe buffer reuse for encodes, payload framing, and LZ4 decompression.

🌊 Ultra-High-Throughput Streaming Protocol

  • 3,181,000 frames/sec: Over 140x faster throughput than NDJSON.
  • 0.31 ms Decode Time: Decodes 1,000 streaming frames in 314 µs.
  • 2.0 ns Single Frame Latency: Real-time instant zero-allocation parsing with zero TCP fragmentation penalty.

📊 CodSpeed Official Validation

  • +37.29% Global Performance Leap across 24 benchmark suites with 0 regressions.
  • Up to 60.35% faster NumPy tensor deserialization and 2.6x faster frame encoding.

📦 Distribution

  • PyPI (bfast-py): Native wheels published for Linux, macOS, and Windows with provenance.
  • NPM (bfast-client): TypeScript client v1.6.1 published with provenance.