shotvibe / shotvibe-ios-client

ShotVibe Client App for iPhone and iPad
1 stars 0 forks source link

Delay before upload starts #309

Closed omershotvibe closed 9 years ago

omershotvibe commented 10 years ago

Enhancement required in the new uploader. There is a large gap between the moment that the user presses the DONE button until the uploading progress actually starts to upload.

The reason for this delay is that the uploader waits first for all the photos to be written into the disc, into the app's internal memory, to handle a case of a crash.

This gap can be solved if the uploader starts to upload at the same moment that the writing to the disc activity is done, they can be done in the same time – this is how the old uploader worked – the photos where uploading and in the same time the photos were written to the disc.

Oblosys commented 10 years ago

Are you sure this occurs in the most recent version? It used to be the case that the uploader waited until all files were saved, but since 93205152eebd800789553e0bb1fdb0473183a915 (March 6) this was fixed.

A small delay is unavoidable though, since we need to save photos to disk before they can be uploaded. The old uploader didn't have to create low-res files, so for photos taken from the camera (which are already saved), the upload could start immediately.

Oblosys commented 10 years ago

This seems to happen only in Omer's account with lots of photos. When uploading new photos taken with the camera, it takes over 10 seconds before the progress bars show any activity. The delay is longer if more photos are uploaded.

TODO: It is unclear whether the delay is acceptable on accounts with fewer photos. TODO: It is unclear whether it only happens on a fresh install, or also if the app has been used a couple of times.