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

Enable using String::equals fast-path intrinsics for exact matches #2526

Merged
merged 1 commit into from
Dec 1, 2023

Conversation

franz1981
Copy link

String::equals got a special treatment on JDK (it's an intrinsic), while regionMatches has only recently received such treatment, via https://bugs.openjdk.org/browse/JDK-8302163

This is introducing a fast-path using equals whetever possible.

@franz1981
Copy link
Author

Despite not being critical is a low-hanging fruit on some of our plaintext measurements using the Vertx's Router in Quarkus tests.

image

Copy link
Contributor

@tsegismont tsegismont left a comment

Choose a reason for hiding this comment

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

LGTM, thank you @franz1981

@tsegismont tsegismont merged commit d3858d7 into vert-x3:4.x Dec 1, 2023
8 checks passed
@tsegismont
Copy link
Contributor

Can you please add this to the master branch as well ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants