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 string values #1280

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
StringOfAsciiCharsReading.zioJson        128  thrpt    5  2564276.761 ± 12171.566  ops/s
StringOfEscapedCharsReading.zioJson      128  thrpt    5   772746.093 ± 56346.729  ops/s
StringOfNonAsciiCharsReading.zioJson     128  thrpt    5  1534866.952 ± 14050.482  ops/s

After

Benchmark                             (size)   Mode  Cnt        Score       Error  Units
StringOfAsciiCharsReading.zioJson        128  thrpt    5  3804646.804 ±  7068.611  ops/s
StringOfEscapedCharsReading.zioJson      128  thrpt    5   794500.421 ± 24975.739  ops/s
StringOfNonAsciiCharsReading.zioJson     128  thrpt    5  1842774.078 ± 10740.569  ops/s

@plokhotnyuk plokhotnyuk requested a review from a team as a code owner February 3, 2025 15:10
@plokhotnyuk plokhotnyuk merged commit e56066d into zio:series/2.x Feb 3, 2025
31 checks passed
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