Module batch

Module batch 

Source
Expand description

Batch processing utilities with parallel execution

This module provides high-performance batch operations for processing multiple blocks, CIDs, and hashes in parallel using Rayon.

§Example

use ipfrs_core::batch::BatchProcessor;
use bytes::Bytes;

let data_chunks = vec![
    Bytes::from("chunk 1"),
    Bytes::from("chunk 2"),
    Bytes::from("chunk 3"),
];

// Create blocks in parallel
let processor = BatchProcessor::new();
let blocks = processor.create_blocks_parallel(data_chunks).unwrap();
assert_eq!(blocks.len(), 3);

Structs§

BatchProcessor
High-performance batch processor for parallel operations
BatchStats
Statistics for batch operations