View Single Post
jonnenau's Avatar
Posts: 116 | Thanked: 445 times | Joined on Apr 2010 @ Oulu, Finland
#113
As requested recursive sync from the desired dropbox path! New confirmation dialog before anything is loaded. This way you'll have a change to cancel if the size is 400 mb while on 3G

Just tested getting my whole /Public folder: 99 files in 5 folders, total size of 221,7 mb. Biggest single file is 103,6 mb.
  • I was running inside scratchbox, with 24/2 ADSL connection.
  • Download was smooth and quite fast, maybe took a few minutes.
  • Files writing instead is slow. Size of local folder now 176 mb (full would be 221,7mb). Nothing has seemingly crashed but I think file writing has stopped, maybe I have a bug in my data worker queue check function. All files are present locally but some of them are 0 bytes.

So downloading huge total size of files will leave the downloaded data in memory for a while before the file writing task is in turn. I had to make it a queue as if many file writing threads were running at the same time the UI on the N900 would start freezing for short periods of time. I think the processor or the hard drive could not handle it.

So to sum it up I would not suggest syncing folders with large size on the device. This was one of the reasons I hesitated on making recursive sync, I'm sure this wont brick anyones N900 but I would think crashing with this kind of action is very possible. One option is to find the limit and deny if the total sync size is too large for the device to handle. Even better I could make logic to do the sync in smaller parts, yes this is a good option. Folder at a time if size is too much.

I wont release this before have tested it better with large syncs on the device. I also have to make checks that no new syncs are started while data writing threads are still alive or in queue. In other case you would do duplicate DL/store for the same files that are still in queue waiting to be written the first time.

This sync that I took shots of will be no problem on the device. Stuff will fly to you over wlan



__________________
DropN900 - the maemo 5 DropBox client

Last edited by jonnenau; 2010-08-01 at 04:57.