Serial: Improving Data Serialization on Android
summary
Twitter for Android replaces Java Serializable with a custom framework called serial that uses explicit object serializers and static instances to write compact typed streams, adds version headers and a builder serializer to keep old rows readable, and prints structured stream dumps for clearer errors. One measured model (tweet entities) drops round‑trip from ~9ms to <3ms and stream size from ~2300 to ~500 bytes (≈3× faster, ≈5× smaller). Library is open source and used across the app.
AI-written summary · about
chapters (10)
- 0:00Introduction and motivation
- 7:25Introducing Serial framework
- 12:03Stream structure and serialization
- 16:36Debugability and error handling
- 18:45Backwards compatibility with versions
- 21:37Performance improvements results
- 25:10Flexibility and integration
- 27:40Broader app improvements
- 29:05Open source and resources
- 30:06Q&A session
related talks
18mFast Data Serialization on Android
38mProtobuf for speeding up your Android application
40mThe Life-Changing Magic of Kotlin Multiplatform Serialization
19mLazy Robots: Telemetry Buffering on Android
43mSmarter data storage on Android
34mPerformance by Construction
29mDon't reinvent the wheel, use libraries: Modern Android Stack
37mAndroid Text, The Good The Bad and The ugly
