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

Converting recycleUnchecked calls to use @Direct with reflector(...) in place of ReflectionHelpers. #6603

Merged
merged 1 commit into from Jul 18, 2021

Conversation

copybara-service[bot]
Copy link

Converting recycleUnchecked calls to use @direct with reflector(...) in place of ReflectionHelpers.

These calls account for the single most ReflectionHelpers invocations with over 32 billion per day. Some of these invocations were eliminated in the earlier conversion of ShadowPausedMessage which was handled automatically by a script. With this change, there should be no remaining ReflectionHelpers invocations.

@copybara-service copybara-service bot force-pushed the piper_383661920 branch 6 times, most recently from a8ebbb1 to f6ae98a Compare July 13, 2021 19:19
…eflector(...).

Some recycleUnchecked(...) invocations were eliminated in the earlier conversion of ShadowPausedMessage which was handled automatically by a script. This change is a followup to get an even larger performance gain.

Test that posts a Runnable to a Handler 1M times using @LooperMode(LEGACY):

Before:
Stats over 100 runs: max = 49.9s, min = 20.7s, avg = 30.6s, dev = 5.8s
After:
Stats over 100 runs: max = 31.4s, min = 15.0s, avg = 22.1s, dev = 3.4s

Approximately a 28% performance improvement on average.

PiperOrigin-RevId: 383661920
@hoisie hoisie merged commit 0b1563a into master Jul 18, 2021
@hoisie hoisie deleted the piper_383661920 branch July 18, 2021 17:21
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.

None yet

1 participant