So I relatively new to app development and I'm looking for some answers to what the industry practices are. Overall my app is working, one of the problems I'm dealing with right now is the following:
Long story short: First, my app executes a network request and parses the response (=array of objects) to create an array of objects. Once that finished, the second network request will be executed and the response will be parsed to create an array of objects once again. I mapped both struct of the json responses in my app. Then, all objects in the second array have to be added to objects in the first array if one of their variables is equal. All of that works, however, the process of doing that takes approximately 5 seconds. To make the user experience better, I'm trying to cache the response to load it faster. What is the best way/industry practice of doing so?
Both responses have 770, respectively 3000 objects, consisting of string and integer variables. Is it best to save the response to a plist, core data or to use almofire and swiftyJSON according to that post?