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

Increased default maxConcurrentOperationCount, fixes #527
This commit is contained in:
Bogdan Poplauschi 2014-11-02 19:33:11 +02:00
commit 759f0b9a3e
1 changed files with 1 additions and 1 deletions

View File

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