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

Cache JClasses in a map instead of using static final #1677

Open
HosseinYousefi opened this issue Oct 23, 2024 · 0 comments
Open

Cache JClasses in a map instead of using static final #1677

HosseinYousefi opened this issue Oct 23, 2024 · 0 comments

Comments

@HosseinYousefi
Copy link
Member

Instead of using static finals to cache jclass references, we can have have a map in package:jni that can use a LRU to cache all JClasses. This way, the maximum number of references the user is willing to allocate to caching can be set (maybe with a default like 256).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Backlog
Development

No branches or pull requests

1 participant