Large uploads are slow
I uploaded a 198 MB video of my dog. Circles handled the file OK but there was a loooong wait even before the thumbnail appeared in the composer. And then when I tapped "Send" there was another looooong wait while it encrypted and uploaded the file.
Things to do:
- Figure out why it takes so long after picking the file and before the thumbnail appears in the composer.
- Instead of encrypting the whole file, then uploading the whole file, it might be faster if we operated on the file in chunks in a sort of pipeline.
- Read a chunk of data from the file
- Encrypt the chunk of data and update the checksum
- Upload the encrypted chunk
The chunking idea will happen automatically we switch to a more HLS-like mode, where a big video file is split into several smaller files. But it would be nice if we could have better performance in the meantime too.