NSV (Newline-Separated Values) format implementation for Rust
Fast parallel implementation using rayon and memchr. See https://nsv-format.org for the specification.
Parallel Parsing Strategy
For files larger than 64KB, we use a parallel approach:
- Find all row boundaries (positions of
\n\n) using memchr's SIMD-optimized search - Split the input into row slices
- Parse each row in parallel using rayon
- Each row is split on
\nand cells are unescaped
For smaller files, we use a sequential fast path to avoid thread overhead.