-
-
Notifications
You must be signed in to change notification settings - Fork 799
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
look at uptaking some of the performance and fast-fail BigDecimal parser code from jsoniter-scala #813
Comments
I have a prototype at https://github.com/pjfanning/jackson-number-parse-bench/blob/main/src/main/java/org/example/jackson/bench/FastBigDecimalParser.java
|
I think it's fine to require copy as |
The current benchmark for FastBigDecimalParser suggests it is better for numbers with lots of digits (and still a little better for numbers with a small number of digits). For BigInteger parsing, I got:
|
I'll close this as we have gone down the route of using https://github.com/wrandelshofer/FastDoubleParser jsoniter-scala is actually faster but it parses the number as it streams the bytes/chars instead of building up strings and parsing those as numbers like Jackson does. Changing Jackson do this would be quite some refactor. |
Agreed, FDP seems to work for now. |
Maybe something for jackson v2.15. Idea is to enhance the existing BigDecimalParser class.
@plokhotnyuk suggested looking at https://github.com/plokhotnyuk/jsoniter-scala/blob/3b062f77f566d64b68b765ceed3738ad93d475dc/jsoniter-scala-core/native/src/main/scala/com/github/plokhotnyuk/jsoniter_scala/core/JsonReader.scala#L1647-L1874
He provides some analysis at https://stackoverflow.com/a/58777171/228843
He provided some benchmarks at FasterXML/jackson-module-scala#572 (comment)
The text was updated successfully, but these errors were encountered: