Skip to content

Releases

⚡ B-FAST v1.12.0 - Web Worker Off-Main-Thread Decoding & Concurrency

Choose a tag to compare

@marcelomarkus marcelomarkus released this 26 Nov 04:10
6006985

⚡ B-FAST v1.12.0 introduces official background thread and Web Worker decoding support in the TypeScript client (bfast-client/worker), allowing web apps to download and decode massive datasets off the main thread with 0.00ms UI freeze.

🚀 Highlights

  • Web Worker Off-Main-Thread Decoding (bfast-client/worker): Native Web Worker and Node.js worker_threads support for offloading CPU-intensive binary decoding.
  • Transparent Worker Fetch (bfastFetchWorker): Automatically downloads and decodes massive B-FAST binary payloads off the UI thread with zero-stall memory transfer, keeping browser frame rates locked at native 60–120+ FPS.
  • Worker Buffer Decoding (decodeInWorker): Offloads pre-fetched binary payloads directly to a dedicated background Web Worker.
  • Scalable Concurrency (BFastWorkerPool): High-throughput pool management with automatic round-robin dispatch for multi-stream, GIS tile rendering, or real-time dashboard applications.
  • Frontend Documentation: Complete documentation and TypeScript code examples in English and Portuguese.

📦 Distribution

⚡ B-FAST v1.11.0 - Frontend Auto-Client, Top-Level APIs & B-FAST Inspector DevTools

Choose a tag to compare

@marcelomarkus marcelomarkus released this 25 Nov 05:07
dbfc01c

⚡ B-FAST v1.11.0 introduces the zero-config transparent frontend auto-client, top-level Python convenience APIs, FastAPI DevTools telemetry headers, and full integration with the official B-FAST Inspector Chrome extension.

🚀 Highlights

  • Transparent Frontend Auto-Client (bfast-client/auto): Zero-config monkey-patching for browser and Node.js fetch. Automatically attaches Accept: application/x-bfast, */* and transparently decodes binary B-FAST payloads via .json(), while gracefully preserving native fallback for standard JSON responses.
  • Top-Level Python Convenience APIs: Added b_fast.encode(data, compress=True) and b_fast.decode(data) functional interfaces for clean, idiomatic serialization without needing to instantiate BFast.
  • FastAPI Telemetry Header: Injected x-bfast-original-length response header in BFastMiddleware, enabling DevTools and network proxies to track real-time compression ratios and bandwidth savings.
  • B-FAST Inspector DevTools Integration: Full documentation and seamless support for the official Chrome Web Store extension (B-FAST Inspector) to monitor and visualize binary request performance.
  • Google Protocol Buffers Benchmarking: Added comprehensive benchmark suite comparing B-FAST against Google Protobuf (benchmarks/bench_protobuf.py).
  • Visual Identity & Modern Benchmarks: Redesigned 6-panel high-resolution benchmark visualization aligned with official brand colors (#FACC15 / #F59E0B) and animated vector branding.

📦 Distribution

⚡ B-FAST v1.10.0 - Lazy Deserialization, Columnar Engine & Native Transport

Choose a tag to compare

@marcelomarkus marcelomarkus released this 21 Oct 04:06

⚡ B-FAST v1.10.0 brings significant new capabilities and performance enhancements across the Python/Rust backend and TypeScript/JavaScript client.

🚀 Highlights

  • Lazy Deserialization: Added BFastLazyView for on-demand indexed access, partitioning, and zero-allocation payload slicing in Python.
  • Batch Processing: Performance acceleration for batch serialization of models and dictionary records.
  • Frontend Columnar Engine: Added BFastTable in bfast-client for high-throughput columnar operations and zero-GC typed views.
  • Native Socket Transport: Added socket transport helpers in b_fast.native with cross-platform support.

📦 Distribution

⚡ B-FAST v1.9.0 - Rust Engine & Client Acceleration

Choose a tag to compare

@marcelomarkus marcelomarkus released this 15 Oct 02:34
122e954

⚡ B-FAST v1.9.0 brings substantial performance and efficiency improvements across both the backend (Python/Rust) and the TypeScript/JavaScript client.

🚀 Highlights

  • Rust Engine Acceleration: Modernized core serialization and deserialization loops in the backend with zero memory reference overhead.
  • Client Acceleration: Faster decoding and decompression for high-volume data in browsers and Node.js with zero configuration.
  • Performance Gate Passed: Validated via CodSpeed with up to 15% efficiency gains across high-load benchmark suites.

📦 Distribution

  • PyPI: bfast-py v1.9.0
  • NPM: bfast-client v1.9.0

⚡ B-FAST v1.8.0 - Python 3.10–3.15 Support & Runtime Modernization

Choose a tag to compare

@marcelomarkus marcelomarkus released this 14 Oct 21:20
8627d6f

⚡ B-FAST v1.8.0 modernizes the Python runtime support matrix, dropping end-of-life versions and extending compatibility to future Python releases.

🔄 Python Version Matrix & Modernization

  • Dropped Python 3.8 & 3.9: Phased out end-of-life Python runtimes. Minimum required version is now Python 3.10+.
  • Extended Support up to Python 3.15: Added support classifiers and testing baseline for Python 3.10, 3.11, 3.12, 3.13, 3.14, and 3.15.
  • PyO3 ABI3 Target: Upgraded Rust core PyO3 target feature to abi3-py310 for stable C ABI compatibility across all modern CPython releases.
  • Modernized Type Hints: Cleaned up codebase to use Python 3.10+ native union syntax (X | Y, X | None) and collections.abc imports.
  • Tooling & Linter Targets: Updated Black and Ruff targets to py310 with strict linting rules.

📦 Ecosystem Updates

  • Python: bfast-py v1.8.0 on PyPI.
  • TypeScript: bfast-client v1.8.0 on NPM.

⚡ B-FAST v1.7.0 - FastAPI Middleware & Zero-Copy Engine Optimizations

Choose a tag to compare

@marcelomarkus marcelomarkus released this 24 Sep 20:34
8e7ee6f

🚀 What's New in v1.7.0

🌐 Transparent FastAPI & ASGI Content Negotiation Middleware

  • BFastMiddleware: Transparent ASGI middleware in b_fast.fastapi supporting automatic content negotiation via Accept: application/x-bfast (with fallback to application/vnd.bfast).
  • Zero-Code Endpoint Migration: Accelerate existing JSON endpoints (return {"hello": "world"}) without modifying handler signatures or return types.
  • Smart Protocol Handling: Preserves empty bodies (204 No Content, 304 Not Modified), non-JSON payloads, explicit binary responses, and errors untouched.
  • Zero External Dependencies: Pure Python standard library json.loads combined with the native Rust B-FAST encoder.
  • Full Support for Explicit Modes: First-class exports of BFastResponse and BFastStreamingResponse for direct high-throughput and NDJSON-replacement streaming routes.

📊 CodSpeed Official Validation

  • 29 benchmark suites tested with zero performance regressions.
  • test_encode_100_uncompressed: 598 ns
  • test_encode_1k_uncompressed: 47.51 µs (-21.0%)
  • test_encode_nested_dicts_1k: 463.57 µs (2.1x speedup)
  • test_stream_decode_1k_frames: 293.30 µs (> 3.4M frames/sec)

📦 Distribution

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

⚡ 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
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.

⚡ B-FAST v1.6.0 - Django Ninja, Polars/Pandas DataFrames, TanStack Query & AI Integration

Choose a tag to compare

@marcelomarkus marcelomarkus released this 23 Sep 21:46

🚀 What's New in v1.6.0

🐍 Python Data & APIs

  • Django Ninja & Django Support: Built-in BFastRenderer for Django Ninja and BFastHttpResponse / BFastStreamingHttpResponse for Django.
  • Native DataFrames Serialization: Direct serialization for Polars (DataFrame, LazyFrame, Series), Pandas (DataFrame, Series), and PyArrow (Table, RecordBatch) without manual dict conversion.
  • FastMCP 2.0 Integration: @bfast_tool and @bfast_resource decorators saving up to 85% context tokens in AI workflows.

💻 Modern TypeScript & Frontend

  • TanStack Query Helpers: bfastQueryOptions and bfastInfiniteQueryOptions for seamless React Query / Vue Query / Svelte integration.
  • Runtime Schema Validation: Universal validator supporting Standard Schema (~standard for Zod 3.24+, Valibot, ArkType) and classic safeParse.
  • Zero-Config LZ4 Compression: Transparent automatic decompression across Browsers, Node.js, Bun, Deno, and Edge Workers.

🤖 AI & LLM Integration

  • llms.txt Endpoints: Standardized documentation at /llms.txt and /pt/llms.txt for OpenCode, Cursor, Claude Code, and Copilot.
  • Clean Architecture Documentation: Removed internal wire format details for a clean developer-focused reference.

⚡ B-FAST v1.5.1 - Major Performance Leap, Zensical Docs & SSOT Versioning

Choose a tag to compare

@marcelomarkus marcelomarkus released this 22 Sep 06:37

🚀 Highlights & Performance Leap

⚡ Serialization Fast-Paths (Up to 24x Speedup)

• Concrete Type Fast-Paths: Direct CPython concrete type checking in Rust (PyBool, PyLong, PyFloat, PyString, PyDict, PyList), eliminating thousands of internal AttributeError exceptions caused by dynamic hasattr checks.
• Primitives Serialization: Reduced from 118.4 ms down to 4.8 ms (~24x speedup).
• Nested Data Structures: Reduced from 408.2 ms down to 34.0 ms (~12x speedup).
• Simple Objects (10,000): Reduced from 4.83 ms to 2.01 ms (🚀 4.1x faster than orjson, 6.0x vs standard JSON).

🌊 Streaming Protocol Optimizations (2.1x Speedup)

• Streaming Decode (Aligned): 11.8 ms for 1,000 frames (~85,000 frames/s).
• Streaming Decode (Fragmented): 13.6 ms for 1,000 frames (~73,500 frames/s).
• Single Frame Latency: Reduced to 139.2 µs (+11.5% speedup).
• Sustained Stream Throughput: > 12,500 frames/s.

🐛 Critical Bugfix for Pydantic Models

• Fixed an issue where nested lists and dictionaries in Pydantic models (e.g. scores: list[float]) fell back to 0x10 (None) in serialize_value_fast. They are now fully supported and accelerated.

🧠 Memory & Allocation Reductions

• Zero Allocations in Batch Lookups: Pre-collected &PyAny key references in serialize_pydantic_simd_batch for direct pointer comparison and cached hash lookups in CPython.
• Pre-allocated String Table: Pre-allocates PyString instances during decode_packed, eliminating tens of thousands of redundant string allocations per frame.
• Lazy Extended Types Loading: datetime, date, time, UUID, and Decimal are now lazy-loaded on demand during decode, eliminating dynamic import overhead for standard payloads.

🏷️ Single Source of Truth (SSOT) Versioning

• Versioning is now centralized exclusively in Cargo.toml.
• Python wheel building dynamically derives the version via Maturin (dynamic = ["version"]).
• Python runtime exports b_fast.__version__ directly from Rust compile-time metadata (env!("CARGO_PKG_VERSION")).
• TypeScript package provides npm run sync-version to keep package.json synchronized.

📚 Modernized Zensical Documentation

• Interactive Grid Cards: Redesigned homepage and feature documentation using Zensical grid cards for better discoverability and navigation.
• Clean Public Architecture: Streamlined public docs focusing on client usage (BFastResponse, BFastStreamingResponse, decodeReadableStream, MCP) while safely abstracting internal protocol details.

📦 Installation

# Python
pip install bfast-py==1.5.1
# or
uv add bfast-py

# TypeScript
npm install bfast-client@1.5.1

🔗 Links

• PyPI: https://pypi.org/project/bfast-py/1.5.1/
• NPM: https://www.npmjs.com/package/bfast-client
• Documentation: https://marcelomarkus.github.io/b-fast/

⚡ B-FAST v1.5.0 - Major Performance Leap & SSOT Versioning

Choose a tag to compare

@marcelomarkus marcelomarkus released this 22 Sep 05:39

🚀 Highlights & Performance Leap

⚡ Serialization Fast-Paths (Up to 24x Speedup)

  • Concrete Type Fast-Paths: Direct CPython concrete type checking in Rust (PyBool, PyLong, PyFloat, PyString, PyDict, PyList), eliminating thousands of internal AttributeError exceptions caused by dynamic hasattr checks.
  • Primitives Serialization: Reduced from 118.4 ms down to 4.8 ms (~24x speedup).
  • Nested Data Structures: Reduced from 408.2 ms down to 34.0 ms (~12x speedup).
  • Simple Objects (10,000): Reduced from 4.83 ms to 2.01 ms (🚀 4.1x faster than orjson, 6.0x vs standard JSON).

🌊 Streaming Protocol Optimizations (2.1x Speedup)

  • Streaming Decode (Aligned): 11.8 ms for 1,000 frames (~85,000 frames/s).
  • Streaming Decode (Fragmented): 13.6 ms for 1,000 frames (~73,500 frames/s).
  • Single Frame Latency: Reduced to 139.2 µs (+11.5% speedup).
  • Sustained Stream Throughput: > 12,500 frames/s.

🐛 Critical Bugfix for Pydantic Models

  • Fixed an issue where nested lists and dictionaries in Pydantic models (e.g. scores: list[float]) fell back to 0x10 (None) in serialize_value_fast. They are now fully supported and accelerated.

🧠 Memory & Allocation Reductions

  • Zero Allocations in Batch Lookups: Pre-collected &PyAny key references in serialize_pydantic_simd_batch for direct pointer comparison and cached hash lookups in CPython.
  • Pre-allocated String Table: Pre-allocates PyString instances during decode_packed, eliminating tens of thousands of redundant string allocations per frame.
  • Lazy Extended Types Loading: datetime, date, time, UUID, and Decimal are now lazy-loaded on demand during decode, eliminating dynamic import overhead for standard payloads.

🏷️ Single Source of Truth (SSOT) Versioning

  • Versioning is now centralized exclusively in Cargo.toml.
  • Python wheel building dynamically derives the version via Maturin (dynamic = ["version"]).
  • Python runtime exports b_fast.__version__ directly from Rust compile-time metadata (env!("CARGO_PKG_VERSION")).
  • TypeScript package provides npm run sync-version to keep package.json synchronized.

📦 Installation

# Python
pip install bfast-py==1.5.0
# or
uv add bfast-py

# TypeScript
npm install bfast-client@1.5.0

🔗 Links