Schubfach adoption + RFR CSR JDK-8202555: Double.toString(double) sometimes produces incorrect results

Raffaello Giulietti raffaello.giulietti at gmail.com
Fri Jun 26 16:47:35 UTC 2020


Hello,

beside the usual request to this community to review the Schubfach 
algorithm and its efficient implementation [1, 2], I'm pleased to 
announce that they have been adopted resp. adapted as part of 
jsoniter-scala [3, 4], a project aiming to be the fastest JSON 
parsing/serialization Scala library [5] out there.

According to the library's author, Schubfach has replaced the Ryū 
algorithm used in earlier versions of the library because of its higher 
performance [6]. It runs quite efficiently even on JDK 8 without the 
Math::highMultiply intrinsic, which has been replaced by Karatsuba's 
multiplication.


Greetings
Raffaello

----

[1] https://drive.google.com/open?id=1luHhyQF9zKlM8yJ1nebU0OgVYhfC6CBN
[2] http://cr.openjdk.java.net/~bpb/4511638/webrev.04/
[3] https://github.com/plokhotnyuk/jsoniter-scala
[4] 
https://github.com/plokhotnyuk/jsoniter-scala/blob/96ed6d282d87d7844e3a9880da4c41a0518f0cc6/jsoniter-scala-core/jvm/src/main/scala/com/github/plokhotnyuk/jsoniter_scala/core/JsonWriter.scala#L1700-L2031
[5] https://plokhotnyuk.github.io/jsoniter-scala/
[6] https://twitter.com/aplokhotnyuk/status/1266792684464885762


More information about the core-libs-dev mailing list