mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
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:
committed by
appleguy
parent
efab1a4855
commit
aa5d730eab
@@ -260,7 +260,7 @@ static NSArray *DefaultLinkAttributeNames = @[ NSLinkAttributeName ];
|
||||
// actually dealloc.
|
||||
__block ASTextKitRenderer *renderer = _renderer;
|
||||
|
||||
ASPerformBlockOnBackgroundThread(^{
|
||||
ASPerformBlockOnDeallocationQueue(^{
|
||||
renderer = nil;
|
||||
});
|
||||
_renderer = nil;
|
||||
|
||||
Reference in New Issue
Block a user