majestrate / XD

meme bittorrent client
https://xd-torrent.github.io/
MIT License
238 stars 25 forks source link

Sequential check of the data before seeding #100

Closed Elcoid closed 1 year ago

Elcoid commented 1 year ago

A mutex is added in fsTorrent.VerifyAll to ensure that the integrity of each torrent is checked one after the other (sequential check) instead of concurrently, before seeding. This makes the check about six times faster (at least on my setup with a spinning hard disk, ~5 minutes instead of ~30 minutes).

Note: The test for configparser fails with 'exec: "shasum": executable file not found in $PATH' on my system because there is no shasum on OpenBSD apparently, but I didn't touch configparser, so it should be good.