title: What are Recommended Ways to Optimize Memory and Usability Speed of custom UITableViewCells with multiple UIImages?
body: <p>I am using a custom UITableViewCell with 3 UIImages in a UITableView with 50-100 rows. Its similar to a UITableViewCell the Facebook iPhone app uses for its news feed view.</p>
  
  <p>The application has 4 similar UITableViews which may be open at the same time via a UITabConroller. </p>
  
  <p>The images are lazy loaded, there is a cache on disk so that no images are loaded twice from the server and there is also a NSMutableDictionary for images allowing in-memory reuse of the same image eg: a users profile picture appears multiple times </p>
  
  <p>This setup is extremely fast but takes a lot of memory even after using the NSMutableDictionary for image reuse. </p>
  
  <p>I tried a variation without the NSMutableDictionary where images are either loaded from the server or pulled from the disk cache every time cellForRowAtIndexPath is called. This setup is extremely memory efficient but causes a noticeable lag in the UITableView scrolling.</p>
  
  <p>A mid-way approach is to free the NSMutableDictionary for images when a low memory warning is received.</p>
  
  <p>Will really appreciate recommendations to optimize memory usage and speed in this scenario and or an insight into how the Facebook iphone app or three20 execute this conceptually.</p>