Use threads in origin synchronisation
Description
The current synchronization can be very slow since it can only upload one file per time. Due to the usual overhead, this will not use the whole bandwidth available. Synchronizing several files at the same time using threads will improve this.
Use-Cases
- The storage synchronization helper sorts actions into two queues: upload files and delete remote in the remote queue and download files and delete local in the local queue
- Both queues are processed with several threads simultaneously. By default there are 4 threads per queue.
- The amount of threads can be set in a
$cfg
setting.