-
-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deserialization gets slow with large data sets #67
Comments
It looks like this is caused by the use of domino-jackson/domino-jackson/src/main/java/org/dominokit/jackson/stream/impl/DefaultJsonReader.java Lines 655 to 758 in ae0b154
Nothing terrible in this at a glance, except for all of the math that has to be done on the Unfortunately, this code is inherited from the upstream project that domino-jackson was forked from, gwt-jackson, so we don't have a great deal of visibility into why some decisions were made there. The tests are also pretty light in this area, so step one is probably to beef that up a bit. Note that the JSON spec defines numbers extremely broadly - so broadly that JS isn't actually capable of evaluating a valid JSON string and keeping the precision found in the original payload. Java can do better (but not all libraries do), between At a quick read, I'm pretty sure we can get away with a vastly cheaper implementation - |
large datasets can get really slow. JSONParser takes about 100ms for a 8MB decode and Jackson takes about 9 seconds
Here is a demo project with demo data:
https://github.com/howudodat/domtest
The text was updated successfully, but these errors were encountered: