| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
@piotrrzysko I would appreciate if you could look at this 1 line fix (plus benchmark). |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Every time we parse a document, we enter method SchemaBasedJsonIterator.walkDocument. Every time we enter said method, we call classResolver.reset();. This clears the class cache and defeats its purpose.
I benchmarked by reading twitter.json into memory, splitting it into 100 individual messages (around ~6kB each), and having each iteration read the 100 messages individually.
We are far slower than Jackson:
I removed classResolver.reset() and benchmarked again:
We are now faster than Jackson.
Any reason this classResolver.reset() call needs to exist?
Here is my command so you can reproduce my results:
I also needed to update version of jsoniterScalaVersion, or else I would get build errors.