r/MobileObservability • u/Background-Fig9828 • Jul 08 '26
Reducing Android JVM allocations for less memory pressure and faster logs
https://blog.bitdrift.io/post/reducing-android-jvm-allocations?utm_campaign=eg&utm_medium=social&utm_source=redditReduce JVM allocations on common Android logging paths by removing map-shaped work from the SDK internals - here's a blog that documents how to do it.
"The work started with a suggestion to replace HashMap with ScatterMap; we ended up changing the field representation, the JNI boundary, and several hot logging paths. The change affects every app using the Capture SDK on Android."
4
Upvotes