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

--deterministic option added #632

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

goatchurchprime
Copy link

This turns off all multi-threading and any use of randomized seeds so that the same exact output files will be produced from the same input file and settings.

This is a useful feature for unit testing (where you can compare the output file with what it is supposed to be), and for applications where the output files are hosted on a content addressed file system (ie addressed by, say, its sha256sum) such as IPFS.

While it's technically possible to have determinism in multithreading (I would start with an implementation of the indexer phase where the onNodeCompleted sleeps and holds back the results from being written till the previous jobs in the queue have been committed first to maintain ordering) it's quite complicated. It should therefore only be implemented when the deterministic mode proves useful enough to justify it.

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.

1 participant