Skip to content

Improve DecoderInput performance#169

Merged
05nelsonm merged 3 commits intomasterfrom
bench/decoder-input
Oct 20, 2025
Merged

Improve DecoderInput performance#169
05nelsonm merged 3 commits intomasterfrom
bench/decoder-input

Conversation

@05nelsonm
Copy link
Copy Markdown
Owner

The DecoderInput wrapper class is slow because every get call hits a when statement. This improves it by simply stashing the get function of whatever input type it is.

@05nelsonm 05nelsonm self-assigned this Oct 20, 2025
@05nelsonm 05nelsonm force-pushed the bench/decoder-input branch 3 times, most recently from 4bd3f34 to 4f70718 Compare October 20, 2025 09:33
@05nelsonm 05nelsonm force-pushed the bench/decoder-input branch 2 times, most recently from 67f0f80 to 6323eb5 Compare October 20, 2025 10:06
@05nelsonm
Copy link
Copy Markdown
Owner Author

Only performance improvement I see is on Linux for Jvm. Other than that, it is marginal.

@05nelsonm 05nelsonm marked this pull request as ready for review October 20, 2025 10:30
Copy link
Copy Markdown
Owner Author

@05nelsonm 05nelsonm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.

@05nelsonm 05nelsonm merged commit 74fc40f into master Oct 20, 2025
12 checks passed
@05nelsonm 05nelsonm deleted the bench/decoder-input branch October 20, 2025 12:21
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