Skip to main content

Module parallel

Module parallel 

Source
Expand description

Multithreaded packet processing using Rayon.

This module provides parallel variants of common packet operations for high-throughput scenarios like PCAP batch processing and flow extraction.

Functionsยง

configure_thread_pool
Configure the global Rayon thread pool.
par_count
Count packets matching a predicate in parallel.
par_filter
Filter packets in parallel using a predicate.
par_map
Apply a function to each packet in parallel, collecting results.
parse_and_map
Parse and immediately apply a transform in parallel.
parse_batch
Parse a batch of raw byte buffers into packets in parallel.
parse_batch_bytes
Parse a batch of Bytes buffers into packets in parallel (zero-copy).
parse_batch_ok
Parse a batch and return only successfully parsed packets.
summarize_batch
Parallel summary extraction: parse and summarize each packet.