I have a pretty simple block of code that I need optimized. It is written in Objective-C.
It is a function that runs on textFieldDidChange that uses Google Places Autocomplete. However, while the user is typing, the interface becomes laggy and the keyboard response is slow.