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

Add simple Cursor variant of the DoesItVectorise example #391

Merged
merged 1 commit into from
Oct 13, 2024

Conversation

rkraneis
Copy link
Contributor

@rkraneis rkraneis commented Sep 4, 2024

Open for discussion. Trying to find some good minimal Valhalla examples, this seemed to be a good start. I'm also looking into adding the "canonical" "Color" and "USDCurrency" examples.

This obviously needs the Valhalla early access JDK and

--enable-preview
-Djava.util.WeakHashMap.valueKeyRetention=SOFT

in .mvn/jvm.config to run via mvn exec:java (see #390 for valueKeyRetention) as well as an appropriately configured sandbox.

I tried the same with LocalDate, but the interactions apparently were too complex for vectorization to kick in and using an explicitly declared value class makes it easier to play with just removing value.

@rkraneis rkraneis changed the title Add simple s Cursor variant of the DoesItVectorise example Add simple Cursor variant of the DoesItVectorise example Sep 5, 2024
@chriswhocodes chriswhocodes merged commit 03c2796 into AdoptOpenJDK:master Oct 13, 2024
1 check passed
@chriswhocodes
Copy link
Member

Thanks @rkraneis, sorry for the delay in getting around to merging this.

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