Titanium-PredictiveCache
Titanium-PredictiveCache copied to clipboard
Restart app after a lot of downloads
I'm creating an issue because I couldn't find another way to contact you.
I'm using quite a similar class to download images to the ApplicationData directory of my app. It really works the same way, with a download queue, callbacks after each file and a "global" callback in the end.
I'm having some sort of an issue on iOS (iPad) after I download a lot of files to the devices. they also take a lot of space (photo albums).
When I quit and restart the app, the app is very slow at startup, as if iOS was indexing the directory or doing some background work I have no control. Have you seen or come around something similar ?
Interesting problem. I have not see that before. I never download enough files to cause that problem.
Maybe titanium is doing it. Somehow it loads all the file name in memory or something. If your memory consumed by the app increases proportionally to the number of files then probably titanium is doing it.
David
On Thu, Jan 26, 2012 at 1:14 AM, Henri-Maxime Ducoulombier < [email protected]
wrote:
I'm creating an issue because I couldn't find another way to contact you.
I'm using quite a similar class to download images to the ApplicationData directory of my app. It really works the same way, with a download queue, callbacks after each file and a "global" callback in the end.
I'm having some sort of an issue on iOS (iPad) after I download a lot of files to the devices. they also take a lot of space (photo albums).
When I quit and restart the app, the app is very slow at startup, as if iOS was indexing the directory or doing some background work I have no control. Have you seen or come around something similar ?
Reply to this email directly or view it on GitHub: https://github.com/ddehghan/Titanium-PredictiveCache/issues/1
I've traced a bit more and it appears everything runs fine until I try to open an xhr object, as if this function is not available until all this background task is not complete. I'll try to post a sample code sometime soon.
Interesting. Yeah it would be great if you share your code with others. :-)
Sent from my iPhone
On Jan 27, 2012, at 1:52 AM, Henri-Maxime [email protected] wrote:
I've traced a bit more and it appears everything runs fine until I try to open an xhr object, as if this function is not available until all this background task is not complete. I'll try to post a sample code sometime soon.
Reply to this email directly or view it on GitHub: https://github.com/ddehghan/Titanium-PredictiveCache/issues/1#issuecomment-3684342
I can't share the exact code of this because it actually belongs to the company I work for, but I'll try and make a snippet of this case and post to gist or something for you to see.