Chao ZhangLatency percentiles are not additiveWhen we are estimating the latency spanning multiple requests on the backend, we tend to use napkin math to add 90th percentile (p90) of…3 min read·Oct 7, 2023----
Chao ZhangReduce, Reuse & Recycle your thread pools ♻️This story covers how to manage thread pools efficiently for real-world Android applications.9 min read·Dec 20, 2021--3--3
Chao ZhanginMicrosoft Mobile EngineeringReducing Android app size in practice at LinkedInApp size is a key metric impacting user acquisition and retention. This story covers how LinkedIn optimizes the app size.7 min read·Nov 23, 2021--2--2
Chao ZhangFairly evaluating the impact of different Android UI libraries on Gradle buildFor an Android application maintained by a large group of developers, build time is one of the most critical developer ergonomic metrics…9 min read·Nov 9, 2021--1--1
Chao ZhangSafely collecting hot flows from Android native UIAlong with the coroutine adoption, StateFlowbecomes an alternative observable data holder for LiveDatasince StateFlowhas almost all the…3 min read·Sep 2, 2021----
Chao ZhangConverting LiveData to Flow: More lessons learnedAndroid KTX provides opinionated methods facilitating using Kotlin Coroutines in Android Architecture Components. For instance…3 min read·Jun 23, 2021----
Chao ZhangDebugging LiveData changes made easyHave you ever got frustrated to debug LiveData changes by adding numerous log statements or breakpoints? As the core data structure of…7 min read·Apr 8, 2021----
Chao ZhangConverting LiveData to Flow: Lessons learnedAndroid KTX provides opinionated methods, such asFlow<T>.asLiveData(), facilitating using Kotlin Coroutines in Android Architecture…3 min read·Apr 3, 2021--2--2
Chao ZhangJvmSuppressWildcards: The secret sauce to your sandwich-style genericsIf generic types are exposed in Kotlin API, consider @JvmSuppressWildcards so that your Java consumer can compile successfully.3 min read·Feb 23, 2021----
Chao ZhangPresenting data efficiently in emailsA simple trick to write an email report for your readers2 min read·Jan 29, 2021----