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 the vectorizedHashCode Intrinsic for P9+ #21338

Draft
wants to merge 18 commits into
base: master
Choose a base branch
from

Conversation

luke-li-2003
Copy link
Contributor

Exploit the new instructions in P9+ to improve the vectorizedHashCode instructions

Fast-path ArraysSupport.vectorizedHashCode and String.hashCodeImplCompressed
methods on Power. The String.hashCodeImplDecompressed method has already
been fast-pathed. Since the other methods use the same logic, the existing
code can be modified to recognise and accomodate them.

Signed-off-by: Luke Li <[email protected]>
@luke-li-2003
Copy link
Contributor Author

Related to #21081 (comment), should probably be cleaned up after the previous PR is merged.

@luke-li-2003
Copy link
Contributor Author

@zl-wang @rmnattas FYI

@luke-li-2003
Copy link
Contributor Author

luke-li-2003 commented Mar 13, 2025

Some quick performance test:

length nightly build P8 build this build
2 290 420 187
4 224 267 272
8 166 170 220
16 82 117 168
128 6 19 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