I have a UISearchbar in my application. This is a dynamic search, and when a user enters text, the remote database is scanned through a remote API call (I think it is through REST).
The table display is updated dynamically as the user enters. I am using NSXMLParser to parse XML results. (so there are 3 delegate methods; didStartElement, didEndElement)
In some cases, the results show duplicate entries, for example, If the user typed YAH, he shows YAHOO 3-4 times. I'm not sure why.
How to reduce the number of times that parsing is performed, or how to delay parsing so that it does not make a request for each character entered / deleted by the user.
This, I suppose, can solve the problem.
source share