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 BigDecimal and java.math.BigDecimal values #1324

Merged

Conversation

plokhotnyuk
Copy link
Contributor

@plokhotnyuk plokhotnyuk commented Feb 18, 2025

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

Before

Benchmark                          (size)   Mode  Cnt       Score      Error  Units
ArrayOfBigDecimalsWriting.zioJson     128  thrpt    5   52895.242 ±  352.384  ops/s
BigDecimalWriting.zioJson             128  thrpt    5  840628.207 ± 4166.662  ops/s

After

Benchmark                          (size)   Mode  Cnt        Score      Error  Units
ArrayOfBigDecimalsWriting.zioJson     128  thrpt    5    87211.354 ±  395.089  ops/s
BigDecimalWriting.zioJson             128  thrpt    5  1114413.845 ± 4798.429  ops/s

@plokhotnyuk plokhotnyuk requested a review from a team as a code owner February 18, 2025 16:32
@plokhotnyuk plokhotnyuk merged commit b4cedad into zio:series/2.x Feb 18, 2025
31 checks passed
@plokhotnyuk plokhotnyuk deleted the more-efficient-encoding-of-bigdecimals branch February 18, 2025 16:49
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