iOS Question freezing of app while looping

tufanv

Expert
Licensed User
Longtime User
Hello,

My app gets json data which has around 3500 entries every 5 second and loops inside it to finds if the user added watchlist item is equal to one of those to update the latest price information, but as there are too many entries for the loop , every 5 seconds while doing this , app freezes for around 2-3 seconds. I cant scroll the scrollview or do anything else . Is there a way to better handle this , or do this without freezing the app ?

Thank you
 

tufanv

Expert
Licensed User
Longtime User
I found a solution at php side with filtering the results but I am curious if there is a solution on b4i level.
 
Upvote 0
Top