arrow icon indicating copy to clipboard operation
arrow copied to clipboard

[C++] Disable `simdjson` threading in chunker

Open taepper opened this issue 2 months ago • 2 comments

Describe the enhancement requested

When invoking simdjson's parse_many, it uses threading to perform its stage 1 parsing on the next batch when while parsing the current batch: https://github.com/simdjson/simdjson/blob/master/doc/parse_many.md?plain=1#L96-L104

In most cases, we do not need to parse any batches after the first one to find delimiters (in fact, we currently would even error, when the first batch does not contain the whole first document). By disabling the parser's threading we can expect performance improvements

Component(s)

C++

taepper avatar Sep 23 '26 14:09 taepper

take

taepper avatar Sep 23 '26 14:09 taepper

Issue resolved by pull request 51473 https://github.com/apache/arrow/pull/51473

pitrou avatar Sep 29 '26 08:09 pitrou