Skip to main content

paste_parallel_to_vec

Function paste_parallel_to_vec 

Source
pub fn paste_parallel_to_vec(
    file_data: &[&[u8]],
    config: &PasteConfig,
) -> Vec<u8> 
Expand description

Paste files in normal (parallel) mode and return the output buffer. Pre-splits files into line offsets (one SIMD pass each), then the main loop uses O(1) array indexing instead of per-line memchr calls. Uses unsafe raw pointer writes to eliminate bounds-check overhead.