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

JavaKit: Cache field/method IDs in JavaObjectHolder #113

Open
DougGregor opened this issue Oct 25, 2024 · 0 comments
Open

JavaKit: Cache field/method IDs in JavaObjectHolder #113

DougGregor opened this issue Oct 25, 2024 · 0 comments
Labels

Comments

@DougGregor
Copy link
Member

Right now, uses of JNI constructs always look up the field/method IDs. We should cache those lookups somewhere in the JavaObjectHolder instance so they need only be performed once for the lifetime of the Swift wrapper.

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

No branches or pull requests

1 participant