Deallocate objects on a serial queue specific for deallocation (#1737)

[Performance] Prevent GCD thread explosion due to object deallocation workloads (serial deallocation queue).
This commit is contained in:
Michael Schneider
2016-06-16 18:18:43 -07:00
committed by appleguy
parent efab1a4855
commit aa5d730eab
5 changed files with 22 additions and 4 deletions

View File

@@ -260,7 +260,7 @@ static NSArray *DefaultLinkAttributeNames = @[ NSLinkAttributeName ];
// actually dealloc.
__block ASTextKitRenderer *renderer = _renderer;
ASPerformBlockOnBackgroundThread(^{
ASPerformBlockOnDeallocationQueue(^{
renderer = nil;
});
_renderer = nil;