mirror of
https://github.com/simdjson/simdjson
synced 2026-06-08 17:27:07 +00:00
920573fffd
- Add threshold-based algorithm selection (N<=8: per-field, N>=9: single-pass) - Per-field lookup leverages simdjson's SIMD-optimized find_field_unordered - Single-pass uses bitmask tracking, first-char filter, and early termination - Add fields_in_order<T> trait for user-defined ordered field optimization Performance improvement on benchmarks: - Twitter: +5.3% (4167 -> 4389 MB/s) - CITM: +14.6% (2600 -> 2994 MB/s) Threshold=8 is based on crossover analysis: at N=9 fields, per-field lookup causes ~35% regression due to quadratic scan cost vs single-pass linear cost.