Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restart app after a lot of downloads #1

Open
H-Max opened this issue Jan 26, 2012 · 4 comments
Open

Restart app after a lot of downloads #1

H-Max opened this issue Jan 26, 2012 · 4 comments

Comments

@H-Max
Copy link

H-Max commented Jan 26, 2012

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 ?

@ddehghan
Copy link
Owner

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:
#1

@H-Max
Copy link
Author

H-Max commented Jan 27, 2012

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.

@ddehghan
Copy link
Owner

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:
#1 (comment)

@H-Max
Copy link
Author

H-Max commented Jan 28, 2012

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants