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

[SPIKE] Investigate using JNA Direct Mapping where possible #25

Open
skeet70 opened this issue Jul 24, 2024 · 1 comment
Open

[SPIKE] Investigate using JNA Direct Mapping where possible #25

skeet70 opened this issue Jul 24, 2024 · 1 comment

Comments

@skeet70
Copy link
Member

skeet70 commented Jul 24, 2024

JNA is sometimes 40+ times slower than JNI. JNA Direct Mapping brings that performance difference way down. Investigate if we can make use of it, and if so how much performance benefit it may bring. uniffi benchmark fixtures will be a useful place to start for measurement.

@skeet70
Copy link
Member Author

skeet70 commented Oct 3, 2024

JNR could also be an alternative, benchmarks. There's also project panama, but that seems much more experimental, even though it was released in JDK 19. If we used that we'd be hard locked into newer Java versions than I imagine most people are using.

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

No branches or pull requests

1 participant