Set max concurrent to 2 by default

This commit is contained in:
Olivier Poitrey 2012-11-08 17:57:24 +01:00
parent 3109110dc0
commit 8f50bf6322
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ NSString *const kCompletedCallbackKey = @"completed";
if ((self = [super init]))
{
_downloadQueue = NSOperationQueue.new;
_downloadQueue.maxConcurrentOperationCount = 10;
_downloadQueue.maxConcurrentOperationCount = 2;
_URLCallbacks = NSMutableDictionary.new;
_workingQueue = dispatch_queue_create("com.hackemist.SDWebImageDownloader", DISPATCH_QUEUE_SERIAL);
_barrierQueue = dispatch_queue_create("com.hackemist.SDWebImageDownloaderBarrierQueue", DISPATCH_QUEUE_CONCURRENT);