-
Hey there,
This operation can take up some time (not a real benchmark but takes up to 53 seconds on my machine, quite a lot considering that data is already binary). EDIT
This is the output:
I find still the |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
The And: did you try to compile with optimizations? Running the code on my MacBook Pro with -O3, I get
|
Beta Was this translation helpful? Give feedback.
-
Truly I compiled in debug mode, my bad, sorry for this. However I think I'll go for a custom SAX parser as I'd like to leave it as binary during the parsing. Thanks a lot! |
Beta Was this translation helpful? Give feedback.
The
from_cbor
function is parsing the binary input and creates a JSON representation in memory. If you don't need it, you can implement your own SAX parser and decide what happens with the values coming from the parser.And: did you try to compile with optimizations? Running the code on my MacBook Pro with -O3, I get