iOs 15.1 - Performance issue with array filtering using NSPredicate

Viewed 93

We have an iPhone app where we are extensively using NSPredicate for array filtering. With iOS 15.1 upgrade, we started seeing performance issues with our app. After troubleshooting, we found slowness with array filtering, which otherwise works pretty fast on iOS 15.0.2 and below versions.

Has anyone else faced such issue? If so, any resolution available? We couldn't find anything in release notes for iOS 15.1, which could cause this issue.

Update - Added sample code

NSPredicate *predicate = [NSPredicate predicateWithFormat:@“ID = %@“, value]; NSMutableArray *result = [data filteredArrayUsingPredicate:predicate];

Here, data is of type NSArray.

0 Answers
Related