Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8974075
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T18:35:51+00:00 2026-06-15T18:35:51+00:00

What might be an acceptable solution for handling large amounts of images in memory?

  • 0

What might be an acceptable solution for handling large amounts of images in memory?

Currently I’m building a photo-sharing application (in some sense similar to Instagram). I’ve been able to mimic their fast loading of many images in the feed (combining pre-loading and lazy-loading of images), but I’m a little stuck on what to do to handle the potential large memory footprint these images will have.

Is CoreData an option for temporary image storage? Is writing the objects to the temporary directory using NSCoder another option? I’m trying to proactively avoid memory crashes, and I’m unsure whether CoreData, a temporary folder, or some other means would be decent enough to reduce the memory footprint of (potentially) hundreds of images if the user scrolls in their feed pretty far. These also will not be permanent.

(For what it’s worth, right now I have an object representation for each image that holds metadata and the image, and they are stored in a basic array structure. It works well for now, but I want to make sure if I’m loading hundreds of images I can reduce the memory footprint but still be able to quickly access these objects)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T18:35:52+00:00Added an answer on June 15, 2026 at 6:35 pm

    I’ve run into this exact dilemma as you in a couple of my own apps, where I had to potentially display hundreds of UIImage objects in table views.

    One of the solutions I did for my app was to not store the full resolution image in memory but instead a thumbnail (which I shrunk down using the UIImage+Resize.h category extension available and described here). And once the user decided to edit or make use of the photo, I then loaded the entire full resolution image.

    You can also save these thumbnails (or at least their image data) to small files in the “~/Library/Caches/” folders.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This might seem like a very easy question for some of you folks, but
It might be acceptable to use rtf and just rename extension to doc/docx/whatever.
I need to have text IDs in my application. For example, we have acceptable
is it acceptable to use ThreadPool in a library? because that obviously might cause
My Python High Replication Datastore application requires a large lookup table of between 100,000
Might be my question sounds more naive. But I wanted to know if it
Might be my question is abstract or out of context, but i am asking
Might be a bit of noob question but it's something that's been getting me
might be a stupid question but I seem to be confused. Im pretty new
Might be a stupid question but in our iOS app we're storing an integer

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.