I'm using UISearchController
for searching in an array of 86,111 objects (actually I'm searching in the name
property of each object).
For some reason, when I start typing on the search bar, the UI freezes for a couple of seconds and then starts working again (for example, the keyboard freezes on one letter, etc.).
I think it's because my UI is really big - I can understand why it's searching very slowly, but I can't understand why it's freezing the UI (isn't it searching on a background thread?).
I'll be really happy if someone will be able to help me,
Thank you!