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

Merged

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
ArrayOfBigIntsWriting.zioJson     128  thrpt    5   61091.389 ±   442.735  ops/s
BigIntWriting.zioJson             128  thrpt    5  838030.788 ± 25859.716  ops/s

After

Benchmark                      (size)   Mode  Cnt        Score      Error  Units
ArrayOfBigIntsWriting.zioJson     128  thrpt    5    99871.398 ±  772.746  ops/s
BigIntWriting.zioJson             128  thrpt    5  1132378.705 ± 3624.196  ops/s

@plokhotnyuk plokhotnyuk requested a review from a team as a code owner February 18, 2025 11:56
@plokhotnyuk plokhotnyuk changed the title More efficient encoding of BigInt values More efficient encoding of BigInt anf java.math.BigInteger values Feb 18, 2025
@plokhotnyuk plokhotnyuk force-pushed the more-efficient-encoding-of-big-numbers branch from c173d0d to 511fb7d Compare February 18, 2025 12:05
@plokhotnyuk plokhotnyuk force-pushed the more-efficient-encoding-of-big-numbers branch from 511fb7d to 827b1c1 Compare February 18, 2025 12:24
@plokhotnyuk plokhotnyuk changed the title More efficient encoding of BigInt anf java.math.BigInteger values More efficient encoding of BigInt and java.math.BigInteger values Feb 18, 2025
@plokhotnyuk plokhotnyuk merged commit bbaf2b4 into zio:series/2.x Feb 18, 2025
31 checks passed
@plokhotnyuk plokhotnyuk deleted the more-efficient-encoding-of-big-numbers branch February 18, 2025 13:01
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