SentryNelson OsackyAnnouncement
The Sentry Android SDK is now 20-30% faster!
Summary
The Sentry Android SDK initialization time dropped 20-30% between versions 8.43.0 and 8.54.0, measured on a Pixel 3 with locked clocks using macrobenchmark with 4 interleaved rounds of 10 runs each. Memory allocation and leaks were fixed, and background CPU time fell up to 10%. Over 40 changes drove these gains, including resolving manifest data at build time via the Gradle plugin, replacing java.net.URI with a custom DSN parser 6000x faster, and reusing thread executor pools to cut heap by 3MB. With 4.5 billion app starts per day and 50% cold starts, the 25% cold start reduction saves an average 10ms per start. The estimated daily savings amount to 6,250 hours of CPU time, equivalent to 2.3 MWh per year.
Context
The Sentry Android SDK initialization was a bottleneck during app startup, causing performance issues.
Approach / What changed
The team made over 40 changes including resolving manifest data at build time via the Sentry Android Gradle Plugin, replacing java.net.URI with a custom DSN parser, and reusing existing thread executor pools to reduce heap size.
Takeaways
Upgrading to Sentry Android SDK 8.54.0 and Gradle Plugin 6.20.0 reduces init time by 20-30%.
The SDK now writes options into bytecode at build time, skipping manifest parsing and improving performance by 6.5%.
Replacing java.net.URI with a custom DSN parser reduced parsing time from up to 6ms to 1µs.
FAQ
How much faster is the new Sentry Android SDK?
The SDK init time is reduced by 20-30% between versions 8.43.0 and 8.54.0, measured on a Pixel 3 with locked clocks.
What specific changes improved performance?
Over 40 changes including build-time manifest resolution, faster DSN parsing, and thread pool reuse. For example, DSN parsing went from up to 6ms to 1µs.
How were the benchmarks conducted?
Benchmarks were run on a Pixel 3 with locked clocks using macrobenchmark, with 4 interleaved rounds of 10 runs each.
Source and freshness
- Source
- blog.sentry.io
- Published
- Added to Yomu
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.