iOS 15.2 is taking long to calculate predicates

I have an array with around 200K elements and I am using this predicate to filter some elements.

NSArray * filteredArray = [mainArray filteredArrayUsingPredicate:[NSPredicate predicateWithFormat:@"(value1 == %@) && (value2 == %@) && (value3 >= %d) && (value1 != %@)", value1, value2, value3, value4]];

When I am running this app in iPad older iOS versions this code takes 0.22 seconds for execution. (I have tested in iOS 14.7, 12.4, 13.2 etc..). But when I am running the it in iOS 15.1 or 15.2 the same code takes 0.63 seconds for execution. Does anyone know why it is taking long time in new iOS version? Any help would be appreciated.

Would be interesting to compare with Swift code (is there a difference between iPadOS versions) ?

Others reported similar issue (Sorry, I just notice both threads are yours! aka duplicate): https://developer.apple.com/forums/thread/698179

In both case that's iPadOS 15.2 with objC code.

Does the problem show on iOS ?

Could be worth a bug report.

FYI, I'm going to respond on your other thread.

iOS 15.2 is taking long to calculate predicates
 
 
Q