Skip to content

Parsers of the conversion threads: no stage 1 thread of their own - #2

Merged
lemire merged 1 commit into
mainfrom
worker-unthreaded
Dec 3, 2026
Merged

lemire merged 1 commit into
mainfrom
worker-unthreaded

Conversation

@lemire

@lemire lemire commented Dec 3, 2026

Copy link
Copy Markdown
Member

With SIMDJSON_THREADS_ENABLED, each document_stream starts a thread for
stage 1, so N conversion threads ran 2N threads. On 32 cores of a Xeon
Gold 6548N, NDJSON to MessagePack on 32 threads fell from 16.1 to 14.1 GB/s;
with threaded = false in the workers' parsers it is back to 16.1.

With SIMDJSON_THREADS_ENABLED, each document_stream starts a thread for
stage 1, so N conversion threads ran 2N threads. On 32 cores of a Xeon
Gold 6548N, NDJSON to MessagePack on 32 threads fell from 16.1 to 14.1 GB/s;
with threaded = false in the workers' parsers it is back to 16.1.
@lemire
lemire merged commit 9216e9e into main Dec 3, 2026
15 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant