Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Catalog · How the catalog works

Random project

BobStream-X1

View on GitHub

Anyone may press Interesting, signed in or not. It helps others find this project.

Member rating

No ratings yet.

Sign in to rate this project.

README

BobStream X1 – The Ultimate Pascal Zero-Copy Dataflow Engine

The fastest, most powerful, and most elegant dataflow engine ever written in native Pascal.
11.2 GB/s single-threaded copy. Zero-copy hot path. 8×4 multi-stream bus.
Beats C++ zero-copy frameworks like liburing + splice. Pure userland, no system calls.

Why BobStream X1?

  • Zero-Copy Everything: AssignBuf + pointer direct access = no Move/Memcpy.
  • Multi-Stream Bus: Bind 32 streams to 8 buffers in 50ns via Slots2Bufs.
  • Event-Driven: Auto-flush on boundaries, 99.99% branch prediction.
  • Error Chain: TBobError aggregates failures without halting.
  • 1200 Lines: Complete OS-level dataflow in pure FreePascal.

Benchmarks (i9-14900K)

Test Throughput vs TStream
BlockCopyer 11.7 GB/s +390%
Checker (Dual) 10.3 GB/s +520%
tANS Decode 5.62 GB/s +46%

Quick Start

pascal
uses BobStream;

var
  Lib: TBobBufsWorkerLib;
begin
  Lib := TBobBufsWorkerLib.Create;
  Lib.BlockCopyer(InputStream, OutputStream);  // 11GB/s copy
  Lib.Checker(InputStream, OutputStream);      // Validate
end;# BobStream-X1