diff --git a/src/to_msgpack.cpp b/src/to_msgpack.cpp index 7f35f96..5271d26 100644 --- a/src/to_msgpack.cpp +++ b/src/to_msgpack.cpp @@ -415,6 +415,10 @@ struct msgpack_writer::impl { std::vector
headers; std::vector> scratch; worker() { +#ifdef SIMDJSON_THREADS_ENABLED + // The threads already run in parallel: no stage 1 thread per parser. + parser.threaded = false; +#endif for (size_t k = 0; k < internal::slots_per_thread; k++) { scratch.emplace_back(new internal::buffer); }