How Low Storage Affects Mobile App Performance on Real Devices
Wahaj Ansari
You open a shopping app, scroll past a few products, and the screen starts to stutter. The images are loading, but scrolling feels heavy and slow to respond. You pause, try again, and everything seems fine.
So what happened?
A slow connection or an overloaded server could be to blame. But sometimes the slowdown begins after the images have already arrived on the phone.
Before an app can display an image, it has to decode it. When decoding takes too long or uses more memory than expected, even a simple product gallery can turn into a performance problem.
For mobile developers and QA engineers, understanding how image decoding affects mobile app performance matters because these issues rarely show up everywhere. They tend to appear on particular devices, during particular interactions, or only after someone has been scrolling for a while. That makes them easy to miss in routine functional testing and frustratingly common in production.
Most images stored on a phone or downloaded from a server are compressed. Formats such as JPEG, PNG, WebP, and HEIC shrink file sizes so images download faster and take up less storage.
A compressed file, however, isn’t something the screen can draw directly. The app or the operating system first has to decode it into a bitmap, which is an uncompressed grid of pixel data the rendering pipeline can work with.
This is where memory usage can grow surprisingly fast. Compression hides how much data an image really holds, so a photo that takes up only a few megabytes on disk can need many times that amount once it’s decoded.
Here’s the math. A 4000 × 3000 pixel photo stored at four bytes per pixel (one byte each for red, green, blue, and transparency) needs about 48 MB of memory. The file size has almost no bearing on that number, because decoded memory depends on pixel dimensions, not on how well the original was compressed.
And that’s just one image. A product page showing several high-resolution photos, or a feed that keeps decoding new ones as the user scrolls, can push memory usage up quickly if the app decodes full-size images it doesn’t actually need.
How much this affects the user depends on how the app loads, resizes, caches, and releases its images.
Image decoding isn’t a problem in itself. Every image-heavy app needs some way to turn compressed files into something the screen can show.
Trouble starts when the app does more decoding work than necessary, or does it at the wrong moment.
A common mistake is assuming that a small file will have a small memory footprint.
Take a travel app that displays hotel photos. The originals might be 4000 pixels wide, while the app shows them as thumbnails only a few hundred pixels across. If the app decodes every photo at full resolution and then scales it down for display, it allocates far more memory than the interface will ever use.
The difference is dramatic. A 300 × 225 thumbnail decoded at that size needs roughly 270 KB. The same thumbnail produced from a full 4000 × 3000 decode costs about 48 MB, nearly 180 times as much.
That extra memory pressure shows up in different ways. On Android, it can lead to more frequent garbage collection and, eventually, an OutOfMemoryError. On iOS, the system may terminate an app that uses too much memory without any warning to the user. Either way, people on devices with less available RAM feel it first.
The fix is to decode images at, or close to, the size they’ll actually appear on screen. On Android, the inSampleSize option in BitmapFactory or the target size settings in ImageDecoder let you do this. On iOS, Apple recommends using the ImageIO thumbnail APIs to downsample large images instead of loading them at full resolution. Popular image loading libraries such as Glide, Coil, and Fresco on Android, or Kingfisher, SDWebImage, and Nuke on iOS, can handle much of this for you when they’re configured correctly.
Mobile apps have to respond to taps, scrolls, and animations without visible delay. On both Android and iOS, the work that keeps the interface responsive runs on the main thread, often called the UI thread.
If expensive image decoding blocks that thread, the app can’t update the screen until decoding finishes.
Picture a news feed. Each time a new article scrolls into view, the app loads a large image and decodes it synchronously on the main thread. Instead of gliding smoothly, the feed pauses for a fraction of a second while the image is prepared. Then it happens again with the next article, and the one after that.
The user knows nothing about image decoding. They just see an app that feels sluggish. Repeated hitches like this make an otherwise functional app frustrating to use, and they’re a common reason behind app store reviews that mention lag or freezing.
The better approach is to decode on a background thread and hand the finished bitmap to the main thread only for display. On iOS 15 and later, UIImage provides prepareForDisplay and preparingThumbnail(of:) for exactly this purpose. On Android, Kotlin coroutines, executors, and the image loading libraries mentioned above move this work off the UI thread.
Some apps decode the same image again and again, even though nothing about it has changed.
Say a user opens a product detail page, goes back to the listing, and then opens the same product again. Without an effective caching strategy, the app may download or decode the same images every time. That means more CPU activity, slower image display, and unnecessary battery drain.
Caching solves part of the problem, but it comes with a tradeoff. Most image libraries use two layers: a memory cache that holds decoded bitmaps ready for instant display, and a disk cache that stores compressed files, which are cheaper to keep but still need decoding. Holding too many decoded images in memory simply moves the problem from the CPU to RAM.
The goal is balance. Reuse the images users are likely to see again, and cap the memory cache, typically with a least recently used (LRU) eviction policy, so it can’t grow without limit.
Smooth scrolling depends on the app finishing each visual update within a tight window known as the frame budget.
On a 60 Hz display, a new frame is due roughly every 16.7 milliseconds. Many current phones run at 90 Hz or 120 Hz, which shrinks that budget to about 11.1 and 8.3 milliseconds respectively. A decode that fits comfortably on an older 60 Hz phone can easily blow the budget on a newer high refresh rate screen.
If image decoding, layout, and rendering together take longer than the budget allows, the frame misses its deadline and users see stutter, often called jank. Google Play’s Android vitals tracks this directly and treats any frame that takes longer than 700 milliseconds to render as a frozen frame.
These problems are especially visible in apps that include:
Each of these screens loads and displays images continuously, so inefficient image handling gets noticed fast.
An app might scroll smoothly on a new flagship phone and struggle on a budget Android device that’s a few years old. That doesn’t mean the older phone is faulty.
Devices differ in processor speed, available RAM, graphics hardware, operating system version, and support for specific image formats. Some can use hardware acceleration for formats like HEIC, while others rely more heavily on software decoding. Format support also depends on the OS version: Android’s ImageDecoder added HEIF support in Android 9, and AVIF decoding didn’t arrive until Android 12.
As a result, the same image loading code can take noticeably longer on one device than on another.
A photo gallery that feels perfect on a powerful development phone might start dropping frames on a device with less memory and a slower CPU once a few dozen images have loaded. Because memory pressure builds gradually, the slowdown may not appear during a quick check at all.
That’s why real device testing matters so much for image-heavy mobile apps. Emulators and simulators are valuable during development, but they run on desktop hardware and don’t faithfully reproduce the processing speed, memory limits, thermal throttling, or decoding behavior of a physical phone. The iOS Simulator, for example, draws on your Mac’s CPU and memory, so it can hide problems that show up immediately on a real iPhone.
Testing on real devices shows you how your app behaves on the hardware your users actually own.
Image decoding problems are much easier to pin down when testing focuses on one repeatable user journey rather than general app speed. Pick a screen where images load frequently, then measure what happens during each interaction.
Start with a flow that loads a lot of images. The product listing screen in a shopping app is a good candidate.
Open the screen, scroll through several rows, tap into a product, and return to the listing. Repeat that sequence several times in the same session.
Note where scrolling slows down, whether images appear late or pop in after a placeholder, and whether the app becomes less responsive as the session goes on. Problems that get worse with every repetition often point to memory that isn’t being released or a cache that keeps growing.
Run the journey on a device with a known configuration and record the details: device model, OS version, app build, image dataset, and network conditions. Without these, later comparisons won’t tell you much.
Capture CPU usage, memory consumption, frame timing, and screen response times during the run. These numbers become your baseline.
If the app currently displays images smoothly, a later jump in memory usage or frame time after a code change is a strong signal of a regression. Automating the journey with a test script makes it far easier to repeat it exactly the same way each time.
Run the same journey on several physical devices. Include at least one lower-powered phone that represents a meaningful share of your audience, not just the devices your team happens to carry. Your analytics can show you which models and OS versions your users rely on most.
Compare image load times, scrolling smoothness, and memory consumption across devices. If the problem appears only on certain devices, check whether image dimensions, supported formats, available memory, or OS-level decoding behavior explains the difference.
Next, look closely at what happens while images load:
These patterns help narrow down the cause. A spike that settles quickly suggests heavy but temporary decoding work. Memory that climbs steadily and never drops suggests images are being held longer than they should be.
Still, a CPU spike on its own doesn’t prove decoding is responsible. Network parsing, layout passes, and other background work can look much the same from the outside.
For a precise diagnosis, developers should turn to platform profiling tools. Android Studio Profiler and Perfetto system traces show which threads were busy, for how long, and what they were running when frames were dropped. On iOS, Instruments templates such as Time Profiler, Allocations, and Animation Hitches serve the same purpose.
The goal is to connect the slowdown the user sees with the specific work happening on the device at that moment.
Once the development team has identified a likely cause and implemented a fix, run the original journey again under comparable conditions: same devices, same dataset, same network, and the same build apart from the fix itself.
Typical fixes include downsampling large images before decoding, moving decode work off the main thread, or tightening the caching strategy.
If scrolling is smoother and resource usage drops, you have solid evidence that the change addressed the real problem. If the numbers barely move, the bottleneck is probably somewhere else.
This approach turns a vague complaint like “the gallery feels slow” into a measurable, repeatable performance investigation.
| Problem | Likely Cause | Recommended Fix |
| Gallery scrolls slowly | Large images decoded during scrolling, often on the main thread | Decode off the main thread and request images at their display size |
| Memory usage climbs quickly | Full-resolution images loaded for small views | Downsample images to match the dimensions they’ll be displayed at |
| Images reload every time a screen opens | Missing or ineffective caching | Review memory and disk caching, and confirm cache keys stay consistent |
| App becomes unresponsive | Expensive processing blocks UI updates | Move decoding and image processing off the main thread |
| App crashes on image-heavy screens | Excessive memory allocation | Limit concurrent decodes, downsample, and cap cache sizes |
| Images appear late | Delays in fetching, decoding, or rendering | Profile each stage separately before optimizing |
No single fix solves every image loading issue. Switching to a different image format, for example, won’t help an app that decodes images on the main thread. Adding more caching can actually make memory pressure worse if the app holds on to too many large bitmaps.
Some causes are less obvious. If your image URLs include a token or timestamp that changes on every request, the cache may treat each one as a new image and never get a hit, no matter how well it’s configured.
The most effective optimization always starts with identifying the actual bottleneck.
When image-heavy screens behave differently from one device to the next, testing on physical hardware gives you the context you need to understand why.
Kobiton’s mobile performance testing capabilities let QA and development teams measure app behavior on real Android and iOS devices. During a test session, teams can review key performance indicators such as CPU usage, memory consumption, network activity, and app responsiveness.
For example, a QA engineer investigating a slow photo gallery could run the same journey across several Android and iOS devices in Kobiton, compare resource usage between them, and go straight to the session where the slowdown occurred.
Kobiton’s Session Explorer brings together session timelines, video replay, and system metrics, so teams can match a performance change to the exact user interaction that triggered it. That makes it much easier to see when a problem happens and which devices it affects.
For deeper analysis of the decoding work itself, developers can pair this real-device evidence with Android or iOS profiling tools. The distinction matters: general CPU and memory metrics can reveal that a performance problem exists without pinpointing the exact decoding operation responsible. Using both gives you the full picture, from what the user experienced to what the code was doing at that moment.
The result is a more reliable troubleshooting process grounded in real device behavior instead of assumptions.
Improving image decoding rarely requires a major redesign. Often, a few targeted changes to how images are prepared and displayed make a noticeable difference in responsiveness.
Decode images at the size you need. A thumbnail rarely needs the full resolution of the original. Downsampling cuts memory usage and processing time. Where possible, have your server or CDN deliver images already sized for the device, so the app never downloads pixels it’s going to throw away.
Keep heavy decoding off the main thread. Use asynchronous image loading so expensive work never blocks taps, scrolling, or animations.
Cache with sensible limits. Reuse decoded images where it helps, but cap memory caches so they never hold more than the device can comfortably spare. Listen for system memory warnings (onTrimMemory on Android, memory warnings on iOS) and clear caches when the system asks.
Load images only when they become relevant. Don’t decode an entire gallery when the user can only see a handful of images at once. Lazy loading combined with modest prefetching, where the next few images are prepared just before they scroll into view, keeps scrolling smooth without wasting memory. On iOS, UICollectionView’s prefetching data source supports this pattern, and on Android, libraries like Glide offer a RecyclerView preloader.
Choose formats based on real requirements. Compression ratio, transparency, visual quality, decoding cost, and device compatibility should all factor into the decision. Newer formats can produce smaller files but may decode more slowly or lack support on older OS versions.
Test across device classes. Include older and lower-powered devices, not just the high-end hardware your development team uses every day.
Measure before you change anything. A slow image doesn’t always mean slow decoding. Network delays, layout passes, and rendering issues can produce similar symptoms, and optimizing the wrong stage wastes time.
For a broader measurement strategy, read Kobiton’s guide on how to measure mobile app performance.
Yes. Inefficient decoding can push memory usage high enough to cause a crash, especially when an app loads several large images at once. On Android, this often surfaces as an OutOfMemoryError. On iOS, the operating system may terminate the app once it exceeds its memory limit. In both cases, crashes tend to cluster on image-heavy screens and happen more often on devices with less RAM.
Yes. Both platforms have to convert compressed images into pixel data before displaying them. The APIs and memory management behavior differ, but inefficient decoding can hurt responsiveness, memory usage, and rendering performance on either platform.
Start by reproducing the slow image loading workflow and reviewing CPU usage, memory consumption, and frame timing. Android Studio Profiler, Perfetto, and Apple’s Instruments provide deeper diagnostics, such as which methods were running on the main thread when frames were dropped. Real device testing then confirms whether the issue is tied to specific hardware configurations.
Not necessarily. Newer formats usually produce smaller files, which saves bandwidth and storage. But decoded memory is still determined by pixel dimensions, and decoding speed depends on the format, the device, and whether hardware acceleration is available. The only reliable answer comes from measuring on the devices your users actually own.
A mobile app doesn’t need complex animations or heavy background processing to run into performance problems. Sometimes something as ordinary as displaying a set of photos is enough to expose inefficient code.
Oversized images, unnecessary decoding, poorly tuned caching, and too much work on the main thread can turn a visually rich interface into a frustrating experience. The hard part is figuring out exactly where the slowdown begins.
By testing image-heavy workflows on real devices and examining the right performance data, development teams can catch problems that everyday functional testing tends to miss, and fix them before users ever notice.
Want to see how your app performs across real mobile devices? Learn how Kobiton’s real-device performance testing helps you track down slowdowns and build faster, more reliable mobile experiences.