Committed by
Alek Åström
Increased default maxConcurrentOperationCount, fixing issue #527
Showing
1 changed file
with
1 additions
and
1 deletions
@@ -65,7 +65,7 @@ static NSString *const kCompletedCallbackKey = @"completed"; | @@ -65,7 +65,7 @@ static NSString *const kCompletedCallbackKey = @"completed"; | ||
65 | if ((self = [super init])) { | 65 | if ((self = [super init])) { |
66 | _executionOrder = SDWebImageDownloaderFIFOExecutionOrder; | 66 | _executionOrder = SDWebImageDownloaderFIFOExecutionOrder; |
67 | _downloadQueue = [NSOperationQueue new]; | 67 | _downloadQueue = [NSOperationQueue new]; |
68 | - _downloadQueue.maxConcurrentOperationCount = 2; | 68 | + _downloadQueue.maxConcurrentOperationCount = 6; |
69 | _URLCallbacks = [NSMutableDictionary new]; | 69 | _URLCallbacks = [NSMutableDictionary new]; |
70 | _HTTPHeaders = [NSMutableDictionary dictionaryWithObject:@"image/webp,image/*;q=0.8" forKey:@"Accept"]; | 70 | _HTTPHeaders = [NSMutableDictionary dictionaryWithObject:@"image/webp,image/*;q=0.8" forKey:@"Accept"]; |
71 | _barrierQueue = dispatch_queue_create("com.hackemist.SDWebImageDownloaderBarrierQueue", DISPATCH_QUEUE_CONCURRENT); | 71 | _barrierQueue = dispatch_queue_create("com.hackemist.SDWebImageDownloaderBarrierQueue", DISPATCH_QUEUE_CONCURRENT); |
-
Please register or login to post a comment