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

mobile: Cache the jclass objects #34357

Merged
merged 1 commit into from
May 25, 2024
Merged

Conversation

fredyw
Copy link
Member

@fredyw fredyw commented May 24, 2024

Caching jclass should help with the performance as per https://developer.android.com/training/articles/perf-jni#jclass,-jmethodid,-and-jfieldid.

Risk Level: low
Testing: unit tests
Docs Changes: n/a
Release Notes: n/a
Platform Specific Features: mobile

Copy link

As a reminder, PRs marked as draft will not be automatically assigned reviewers,
or be handled by maintainer-oncall triage.

Please mark your PR as ready when you want it to be reviewed!

🐱

Caused by: #34357 was opened by fredyw.

see: more, trace.

@fredyw fredyw changed the title mobile: Cache the JNI jclass objects mobile: Cache the jclass objects May 24, 2024
Signed-off-by: Fredy Wijaya <fredyw@google.com>
@fredyw fredyw marked this pull request as ready for review May 24, 2024 22:23
@fredyw
Copy link
Member Author

fredyw commented May 24, 2024

/assign @abeyad

@fredyw fredyw enabled auto-merge (squash) May 24, 2024 22:23
@fredyw
Copy link
Member Author

fredyw commented May 24, 2024

/retest

@fredyw
Copy link
Member Author

fredyw commented May 25, 2024

/retest

@fredyw fredyw merged commit d69544e into envoyproxy:main May 25, 2024
35 checks passed
@fredyw fredyw deleted the jclass_cache branch May 25, 2024 04:58
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