Replies: 1 comment 2 replies
-
|
Could you read this section in our documentation and see whether it answers your question ? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I started the parsing through
simdjson::dom::elementand it works for me.After I read the online doc, it seems that I should use
simdjson::ondemand::parser.However, I cannot find a way that I could pass the fixed-length buffer to
simdjson::ondemand::parser.The
raw_datais received through network and I cannot allocate extra buffer without copying it to a new data structure.Question 1>
What is the best way that I can utilize
simdjson::ondemand::parserfor a fix-length buffer?I can use method 1-3 below but I have concern that this will kill the performance.
Question 2>
Is Method 4 faster than Method 1 - 3 since it doesn't require an explicit copy?
Or Method 4 still makes a copy internally so it will be slower than method 1 - 3?
Thank you
iterate(const char *json, size_t len, size_t capacity) // in my case, the len == capacityBeta Was this translation helpful? Give feedback.
All reactions