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 8570873
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T18:39:27+00:00 2026-06-11T18:39:27+00:00

In my application I used the performSelectorInBackground: to load images from disk. After some

  • 0

In my application I used the performSelectorInBackground: to load images from disk. After some unit testing with dispatch_async i decided to replace my performSelectorInBackground with dispatch_async calls.

dispatch_queue_t currentBackgroundQueue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_HIGH, 0);
dispatch_async(currentBackgroundQueue, ^{
    [self getImageFromDisk:sPath delegate:(id)delegate];
});

The code seems to work, but now my images load slower then before. This causes a black image when the user scrolls through the images.

My application contains some kind of photoscroller. I cannot use apple’s tiling sample code because it increases the app size to much. I use this snippet to load the image from disk.

  • 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-11T18:39:28+00:00Added an answer on June 11, 2026 at 6:39 pm

    Ive said this on other similar questions before, using dispatch async on the global queue will cause synchronous like behavior especially for code that eventually updates the UI. YMMV but when I have tried it its more or less the same result as a synchronous call. Create and use your own queue, or (create and use your own queue) with NSOperations.

    I believe the reason for this is that any events posted to the global queue will consume the queues processing time even though the code is technically asynch. Dont use the global queue for background ops.

    Use a custom queue and pump your own runloop.

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

Sidebar

Related Questions

My application is used to upload rather big files (~500mb) and some of them
I see an application have used Log.info = some info where are these logs
The site loads app_offline.htm. The application used to load fine, im not sure whats
I am having a section of an application used for converting units from feet
Our application used to make use of a common base form that all forms
My ASP.Net application used to restart unpredictably during requests, ruining my state, session data
I develop a critical application used by a multi-national company. Users in offices all
I'm writing a ASP.NET application used within our company. Now I want to send
My application is used on multiple platforms so it saves it preferences to a
I have an application that used Macro. In this macro I would like to

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.