◐ Shell
clean mode source ↗

[DON'T REVIEW] perf(replay): Defer ReplayIntegration.start() off the main thread by runningcode · Pull Request #5474 · getsentry/sentry-java

and others added 2 commits

May 28, 2026 11:28
Move the expensive work in ReplayIntegration.start() (capture strategy
creation, recorder start, root view listener registration) to the
executor service, keeping only the lightweight state checks and
lifecycle transition synchronous. This saves ~16ms on the main thread
during SentryAndroid.init() (measured on Pixel 3).

The registerRootViewListeners() call is posted to the main looper
handler since it triggers View operations via OnRootViewsChangedListener.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

github-actions[bot]

@runningcode runningcode changed the title perf(replay): Defer ReplayIntegration.start() off the main thread [DON'T REVIEW] perf(replay): Defer ReplayIntegration.start() off the main thread

Jun 1, 2026