Authored by Bogdan Poplauschi

Merge pull request #897 from MrAlek/fix/max-concurrency-count

Increased default maxConcurrentOperationCount, fixes #527
@@ -67,7 +67,7 @@ static NSString *const kCompletedCallbackKey = @"completed"; @@ -67,7 +67,7 @@ static NSString *const kCompletedCallbackKey = @"completed";
67 _operationClass = [SDWebImageDownloaderOperation class]; 67 _operationClass = [SDWebImageDownloaderOperation class];
68 _executionOrder = SDWebImageDownloaderFIFOExecutionOrder; 68 _executionOrder = SDWebImageDownloaderFIFOExecutionOrder;
69 _downloadQueue = [NSOperationQueue new]; 69 _downloadQueue = [NSOperationQueue new];
70 - _downloadQueue.maxConcurrentOperationCount = 2; 70 + _downloadQueue.maxConcurrentOperationCount = 6;
71 _URLCallbacks = [NSMutableDictionary new]; 71 _URLCallbacks = [NSMutableDictionary new];
72 _HTTPHeaders = [NSMutableDictionary dictionaryWithObject:@"image/webp,image/*;q=0.8" forKey:@"Accept"]; 72 _HTTPHeaders = [NSMutableDictionary dictionaryWithObject:@"image/webp,image/*;q=0.8" forKey:@"Accept"];
73 _barrierQueue = dispatch_queue_create("com.hackemist.SDWebImageDownloaderBarrierQueue", DISPATCH_QUEUE_CONCURRENT); 73 _barrierQueue = dispatch_queue_create("com.hackemist.SDWebImageDownloaderBarrierQueue", DISPATCH_QUEUE_CONCURRENT);