Increased default maxConcurrentOperationCount, fixing issue #527

This commit is contained in:
Alek Åström 2014-09-14 13:57:48 +02:00 committed by Alek Åström
parent 5f4d7f44b4
commit 09b6ee941a
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ static NSString *const kCompletedCallbackKey = @"completed";
if ((self = [super init])) {
_executionOrder = SDWebImageDownloaderFIFOExecutionOrder;
_downloadQueue = [NSOperationQueue new];
_downloadQueue.maxConcurrentOperationCount = 2;
_downloadQueue.maxConcurrentOperationCount = 6;
_URLCallbacks = [NSMutableDictionary new];
_HTTPHeaders = [NSMutableDictionary dictionaryWithObject:@"image/webp,image/*;q=0.8" forKey:@"Accept"];
_barrierQueue = dispatch_queue_create("com.hackemist.SDWebImageDownloaderBarrierQueue", DISPATCH_QUEUE_CONCURRENT);