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

perf: Avoid charset lookup in key validation #157

Merged
merged 1 commit into from
Feb 5, 2025

Conversation

jasonk000
Copy link
Member

The upstream implementation needs to do a "UTF-8" string lookup to Charset for every key validation. We can avoid this completely in our hot path by using a reference to StandardCharsets.

The upstream implementation needs to do a "UTF-8" string lookup to
Charset for every key validation. We can avoid this completely in our
hot path by using a reference to StandardCharsets.
@pkarumanchi9 pkarumanchi9 self-requested a review February 4, 2025 01:27
Copy link
Contributor

@pkarumanchi9 pkarumanchi9 left a comment

Choose a reason for hiding this comment

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

Looks good!

@pkarumanchi9 pkarumanchi9 merged commit 4cb82c2 into Netflix:master Feb 5, 2025
1 check 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.

2 participants