Repository navigation
A performance release. Large downloads use far less memory on Firefox, transfers on fast local networks are quicker, and resuming a big download no longer strains the sender.
Improvements
- Much less memory on Firefox. When a download finished, FileSync saved it by passing the file through its Service Worker, and Firefox held that whole stream in memory: about 3 GB for a 1 GB file. The browser now saves the file straight from disk. In our tests, receiving 1 GB on Firefox added about 350 MB of memory instead of 3 GB, and the file was saved about 18% sooner. "Download all" gains the same way.
- Faster transfers on fast networks. The receiver now writes data in larger batches whenever it arrives faster than a single write can finish. Sending 1 GB between two Chromium browsers on a local link went from 21.6 s to 14.2 s with the save dialog, and from 23.8 s to 17.7 s without it. Slower links behave as before.
- Resuming a large download is light on the sender. Resuming used to load most of the already-sent part of the file into the sender's memory: about 1.7 GB when a 2 GB download resumed at 90%. It now takes about 0.4 GB and the same time. The same safeguard keeps memory flat on devices that verify data more slowly than the network delivers it.
- Lower memory over plain HTTP. Without HTTPS, a received file is held in memory until it is complete. That now takes about half as much in Chromium (about 1.2 GB instead of 2.1 GB for a 1 GB file) and about a quarter less in Firefox.
Under the hood
- Both compose files (
docker-compose.ymlanddocker-compose-ssl.yml) use coturn 4.19.2 (was 4.19.1). - FastAPI 0.165.0 (was 0.163.1).
Upgrading
From your filesync folder, run docker compose pull && docker compose up -d (add -f docker-compose-ssl.yml after docker compose for the HTTPS setup). Re-download the compose files if you want the refreshed coturn image.
Full changelog: v.5.0.4...v.5.1.0