Top recommended videos to understand iOS App Memory Deep Dive

Kumar Reddy
2 min readJun 27, 2021

In general, the memory usage of an application takes a back seat while developing and we tend to more focus on the feature development, UI development, and architecture of the app.

It is somewhat easy to understand the UI logic and architecture of the app by just looking at the PRs or Code. However, it is hard to understand the memory impacts of the code or how much memory requires to run the application or feature.

We usually start to look into memory profiling and other instruments only when we see a tangible effect on the app responsiveness or when the app receives the memory warnings while running the application.

To make this much earlier into the development phase, Apple had given a lot of documentation and also provided a really amazing video to understand the deep internals of memory management. Please check out the following videos for gaining insights on memory management.

iOS Memory Deep Dive

This video covers the following major topics.

  1. What is Memory Footprint? ( Page Size, Dirty Memory, Swap Memory)
  2. Tools for profiling the Memory Footprint
  3. More on vmmap and heap command-line tools to analyze the memory graphs.
  4. Image Rendering formats
  5. More details on the usage of UIGraphicsImageRenderer Instead of UIGraphicsBeginImageContextWithOptions
  6. Optimizing when the app is in the background.

Image and Graphics Best Practices

This video covers the following major topics.

  1. Image Rendering Pipeline ( Load -> Decode -> Render )
  2. Data Buffers, Frame Buffers, and Image Buffers
  3. The importance of Downsampling the images for the required sizes
  4. About Thread Explosion and best practices to avoid the same and many more topics.

Thank you for reading the article. Please provide your valuable feedback/comments for improving the article.

--

--