Expand description
Vectorized Batch Processing
High-performance batch operations leveraging SIMD-optimized crates:
- CRC32: Hardware-accelerated checksums via
crc32fast(SSE4.2/AVX2/ARMv8) - Memory search: SIMD byte search via
memchr(AVX2/SSE2/NEON) - Batch message encoding: Encode/decode multiple messages in single pass
- Columnar
RecordBatch: Cache-friendly columnar layout for filtering - Parallel
BatchProcessor: Thread-pool batch map/filter
The SIMD acceleration is provided by the underlying crates, which auto-detect and use the best available instruction set at runtime. No hand-written SIMD intrinsics are needed — the libraries handle platform-specific dispatch.
Performance characteristics:
- 4-8x faster checksums vs naive loop (via
crc32fast) - 2-4x faster batch encoding vs sequential
- Near-zero allocation hot path
Structs§
- Batch
Decoder - Batch decoder for high-throughput message decoding
- Batch
Encoder - Batch encoder for high-throughput message encoding
- Batch
Message - Message for batch encoding
- Batch
Processor - Batch processor for parallel operations
- Decoded
Message - Decoded message
- Decoder
Stats Snapshot - Encoder
Stats Snapshot - Processor
Stats Snapshot - Record
Batch - Record batch for columnar storage/processing
- Record
Batch Iter - Iterator over RecordBatch
Functions§
- crc32_
batch - Batch CRC32 calculation for multiple buffers
- crc32_
fast - Fast CRC32 calculation using hardware acceleration when available
- memchr_
fast - Vectorized memory search
- memcmp_
fast - Vectorized memory comparison
- memmem_
fast - Vectorized pattern search