-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
Android: Decrease cost of reflection #11204
Android: Decrease cost of reflection #11204
Conversation
This change suppresses accessing checking during reflection which makes reflection faster by decreasing its overhead.
@facebook-github-bot import Going to perf test this internally -- did you all measure any perf wins with this? |
(I mean, this is probably strictly better than what we currently have so I'll land it anyway :) ) |
@astreet has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
@astreet One of my teammates commented on the performance improvement we saw here:
AaaChiuuu ran a benchmark but said he didn't see any improvement:
|
Summary: This change suppresses access checking during reflection which makes reflection faster by decreasing its overhead. **Test plan (required)** My team uses this change in our app. Adam Comella Microsoft Corp. Closes facebook#11204 Differential Revision: D4250790 Pulled By: astreet fbshipit-source-id: 0ee2f40dcadccc695980fcae14fafe1050acb52f
Summary: This change suppresses access checking during reflection which makes reflection faster by decreasing its overhead. **Test plan (required)** My team uses this change in our app. Adam Comella Microsoft Corp. Closes facebook#11204 Differential Revision: D4250790 Pulled By: astreet fbshipit-source-id: 0ee2f40dcadccc695980fcae14fafe1050acb52f
This change suppresses access checking during reflection which makes reflection faster by decreasing its overhead.
Test plan (required)
My team uses this change in our app.
Adam Comella
Microsoft Corp.