Skip to content
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

More efficient decoding of floats and doubles with long mantissas #1277

Conversation

plokhotnyuk
Copy link
Contributor

Tested with Scala 3 and JDK 21 on Intel® Core™ i7-11800H:

Before

Benchmark                          (size)   Mode  Cnt        Score       Error  Units
ArrayOfBigDecimalsReading.zioJson     128  thrpt    5   139494.914 ±  4433.385  ops/s
ArrayOfDoublesReading.zioJson         128  thrpt    5   239723.251 ± 22115.957  ops/s
ArrayOfFloatsReading.zioJson          128  thrpt    5   369198.260 ± 18019.799  ops/s

After

Benchmark                          (size)   Mode  Cnt        Score       Error  Units
ArrayOfBigDecimalsReading.zioJson     128  thrpt    5   151187.739 ±   459.966  ops/s
ArrayOfDoublesReading.zioJson         128  thrpt    5   304200.753 ±  4779.653  ops/s
ArrayOfFloatsReading.zioJson          128  thrpt    5   443325.617 ±  6852.218  ops/s

@plokhotnyuk plokhotnyuk requested a review from a team as a code owner February 2, 2025 13:29
@plokhotnyuk plokhotnyuk merged commit f5337c0 into zio:series/2.x Feb 2, 2025
31 checks passed
@plokhotnyuk plokhotnyuk deleted the more-efficient-decoding-of-floats-and-doubles-with-long-matissas branch February 2, 2025 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant