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 BigInt and java.math.BigInteger values #1275

Merged

Conversation

plokhotnyuk
Copy link
Contributor

@plokhotnyuk plokhotnyuk commented Feb 2, 2025

TBD: make similar improvements for parsing of floating point numbers

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

Before

Benchmark                      (size)   Mode  Cnt       Score     Error  Units
ArrayOfBigIntsReading.zioJson     128  thrpt    5   49032.193 ± 564.246  ops/s

After

Benchmark                      (size)   Mode  Cnt       Score     Error  Units
ArrayOfBigIntsReading.zioJson     128  thrpt    5  140949.374 ± 825.876  ops/s

@plokhotnyuk plokhotnyuk requested a review from a team as a code owner February 2, 2025 07:00
@plokhotnyuk plokhotnyuk force-pushed the more-efficient-decoding-of-bigints branch from cc97fbe to 88e4a06 Compare February 2, 2025 07:38
@plokhotnyuk plokhotnyuk merged commit c40b7a6 into zio:series/2.x Feb 2, 2025
31 checks passed
@plokhotnyuk plokhotnyuk deleted the more-efficient-decoding-of-bigints branch February 2, 2025 07:47
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