[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
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>
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters