Tag: Performance
All the articles with the tag "Performance".
-
Android BitmapPool and inBitmap: Eliminating GC-Caused UI Lag While Scrolling
Learn how BitmapPool and the inBitmap option eliminate the third image-loading problem — GC-caused UI freezes during RecyclerView scrolling — by reusing bitmap memory instead of allocating and discarding it.
-
Android Image Caching: RAM, Disk, LRU Eviction, and the Two-Level Strategy
Understand Android's two-level image cache — RAM and disk — how LRU eviction keeps it bounded, and how the memory-disk-network waterfall turns a 7-second cold load into an instant repeat load.
-
Why Images Load Slowly in RecyclerView and How Glide Fixes It with ViewTreeObserver
Learn why fast scrolling in a RecyclerView causes slow image loading, how thread queues get clogged by already-scrolled-past items, and how Glide uses ViewTreeObserver to cancel unwanted tasks at exactly the right moment.
-
Android Image Loading: OOM, Downsampling, and the Bandwidth Problem
Understand what really happens when Android loads an image — the download and decode pipeline, why large images cause OOM crashes, how downsampling fixes it, and the hidden bandwidth waste most apps accept.