How RevenueCat cut Android paywall tap latency from 700 ms to 184 ms
Brief
RevenueCat investigated pauses after package selections in Android paywalls and found that much of the delay came from work that did not change what users saw.
What drove the delay
- With the main fix disabled, a synthetic paywall with 300 texts took 700 ms per tap; with the current SDK, it took 184 ms.
- The main fix avoids reading selection-related state for components whose override conditions do not use it, and caches compiled regex patterns used for spoken price text.
- The investigation explains that derivedStateOf can skip recomposition after recalculating a value, so unnecessary state reads can still be costly.
Other findings
- Giving downloaded fonts value-based equality prevented unnecessary text recompositions and font file loads in a test with 300 texts.
- An indeterminate progress indicator composed at alpha 0 still animated and triggered frames; the fix composes it only while visible.
- Moving a slow interaction callback until after the next frame reduced measured tap-to-selection time, but changes when apps receive the callback.
Generated by AI from the original article. Check the source for full details.