Order the steps
Put the pipeline steps in order for one image request.
- Look in the memory cache of decoded images
- Look in the disk cache
- Downsample and decode off the main thread
- Store in the caches and deliver on the main actor if the cell still wants it
- Join an in-flight request for the same URL, or start a download
Hint 1 of 1
Cheapest checks come first.
Choose an answer, then open Show answer below to check it.
Show answer
Answer: A B E C D
- Look in the memory cache of decoded images The fastest hit: no I/O or decoding.
- Look in the disk cache Avoids the network when the image was downloaded before.
- Join an in-flight request for the same URL, or start a download Coalescing prevents duplicate downloads.
- Downsample and decode off the main thread Decoding at display size saves memory and keeps scrolling smooth.
- Store in the caches and deliver on the main actor if the cell still wants it The identity check prevents wrong images in reused cells.