Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sequential check of the data before seeding #100

Merged
merged 1 commit into from
Jan 24, 2023

Conversation

Elcoid
Copy link
Contributor

@Elcoid Elcoid commented Jan 24, 2023

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.

The mutex is used 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
spinning hard disks).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants