diff --git a/Source/ASCollectionView.mm b/Source/ASCollectionView.mm index 4ea24709..d8dc9fdf 100644 --- a/Source/ASCollectionView.mm +++ b/Source/ASCollectionView.mm @@ -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 - diff --git a/Source/ASTableView.mm b/Source/ASTableView.mm index 34b78eb6..9cae6878 100644 --- a/Source/ASTableView.mm +++ b/Source/ASTableView.mm @@ -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 -