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

Improve Java UUID Validation Performance #670

Merged
merged 3 commits into from Oct 17, 2022

Conversation

Fleshgrinder
Copy link
Contributor

Replaces the existing UUID validation implementation with the UUID implementation that was added to Java in version 15. This implementation is significantly faster than our previous implementation, and requires fewer allocations (in fact only one global allocation, which is lazy and cached from there on out). Only SIMD vector instructions could be used to make it even faster.

Replaces the existing UUID validation implementation with the UUID
implementation that was added to Java in version 15. This implementation
is significantly faster than our previous implementation, and requires
fewer allocations (in fact only one global allocation, which is lazy and
cached from there on out). Only SIMD vector instructions could be used
to make it even faster.
@CLAassistant
Copy link

CLAassistant commented Oct 4, 2022

CLA assistant check
All committers have signed the CLA.

buildbreaker
buildbreaker previously approved these changes Oct 14, 2022
Copy link

@buildbreaker buildbreaker left a comment

Choose a reason for hiding this comment

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

Thanks for this @Fleshgrinder :)

@Fleshgrinder
Copy link
Contributor Author

The build failure is unrelated to the patch.

Copy link
Contributor

@elliotmjackson elliotmjackson left a comment

Choose a reason for hiding this comment

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

build fixed, thanks for your patience @Fleshgrinder

@elliotmjackson elliotmjackson merged commit 8b6f09b into bufbuild:main Oct 17, 2022
@Fleshgrinder Fleshgrinder deleted the java-uuid-validation branch October 17, 2022 13: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.

None yet

4 participants