mirror of
https://github.com/TextureGroup/Texture.git
synced 2026-04-07 19:17:39 +00:00
[Experiment] Dont forget about these collection view background deallocs (#1424)
* Dont forget about these collection view background deallocs * Also Table view for completeness
This commit is contained in:
@@ -334,8 +334,10 @@ static NSString * const kReuseIdentifier = @"_ASCollectionReuseIdentifier";
|
||||
}
|
||||
|
||||
// Data controller & range controller may own a ton of nodes, let's deallocate those off-main.
|
||||
ASPerformBackgroundDeallocation(&_dataController);
|
||||
ASPerformBackgroundDeallocation(&_rangeController);
|
||||
if (ASActivateExperimentalFeature(ASExperimentalOOMBackgroundDeallocDisable) == NO) {
|
||||
ASPerformBackgroundDeallocation(&_dataController);
|
||||
ASPerformBackgroundDeallocation(&_rangeController);
|
||||
}
|
||||
}
|
||||
|
||||
#pragma mark -
|
||||
|
||||
@@ -373,8 +373,10 @@ static NSString * const kCellReuseIdentifier = @"_ASTableViewCell";
|
||||
}
|
||||
|
||||
// Data controller & range controller may own a ton of nodes, let's deallocate those off-main
|
||||
ASPerformBackgroundDeallocation(&_dataController);
|
||||
ASPerformBackgroundDeallocation(&_rangeController);
|
||||
if (ASActivateExperimentalFeature(ASExperimentalOOMBackgroundDeallocDisable) == NO) {
|
||||
ASPerformBackgroundDeallocation(&_dataController);
|
||||
ASPerformBackgroundDeallocation(&_rangeController);
|
||||
}
|
||||
}
|
||||
|
||||
#pragma mark -
|
||||
|
||||
Reference in New Issue
Block a user