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

Small optimizations for jsoniter codecs #1979

Merged
merged 2 commits into from
Nov 4, 2023

Conversation

kyri-petrou
Copy link
Collaborator

With these changes, we seem to be getting around ~15-20% improvement when encoding responses:

Before:
[info] Benchmark                         Mode  Cnt    Score    Error  Units
[info] JsonEncodingBenchmarks.jsoniter  thrpt    5  108.922 ± 36.553  ops/s

After:
[info] Benchmark                         Mode  Cnt    Score    Error  Units
[info] JsonEncodingBenchmarks.jsoniter  thrpt    5  127.513 ± 42.944  ops/s

@kyri-petrou kyri-petrou merged commit fc0720e into series/2.x Nov 4, 2023
@kyri-petrou kyri-petrou deleted the jsoniter-microoptimizations branch November 4, 2023 04:00
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.

2 participants