Skip to content

Benchmarks? #60

Answered by d-frey
patlecat asked this question in Q&A
Discussion options

You must be logged in to vote

@patlecat I don't think there were significant changes, although taoJSON might get a little bit faster. But there are a few points why libraries like RapidJSON are currently much faster:

  • They have hand-optimized parsers that use SIMD-instructions to skip whitespace, etc. You could try and have such a parser generate the necessary events for taoJSON, hence leveraging the parser speed and still use the rest of our library. But maintaining such a parser in a portable way is a lot of work.
  • The in-memory structure of RapidJSON is basically just one big chunk of memory and they are writing a constant stream of data in it. In a way, RapidJSON's memory representation of the data is like a binary…

Replies: 6 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by d-frey
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #60 on December 20, 2020 18:49.