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

Suggestion: parallelize low complexity masking #39

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Suggestion: parallelize low complexity masking #39

wants to merge 3 commits into from

Conversation

tskir
Copy link

@tskir tskir commented Aug 11, 2018

I was trying to build nt database and discovered that it would take roughly 12 hours to mask all of it in one thread. This example modification uses GNU Parallel to speed up repeat masking in proportion to the number of CPUs. Perhaps this code will need to be changed before being merged (e. g. checking that GNU Parallel is available in PATH, of taking into account user setting of whether to use multiple threads), so this is only a draft and a suggestion.

@tskir
Copy link
Author

tskir commented Aug 11, 2018

Oh yeah, and I also added an awk snippet to filter out empty records (turns out nt database contains a few of them...), since they cause dustmasker to fail.

@tskir tskir changed the title Suggestion: parallelize repeat masking Suggestion: parallelize low complexity masking Aug 11, 2018
I was trying to build `nt` database and discovered that it would take roughly 12 hours to mask all of it in one thread. This example modification uses GNU Parallel to speed up repeat masking in proportion to the number of CPUs. Perhaps this code will need to be changed before being merged (e. g. checking that GNU Parallel is available in PATH, of taking into account user setting of whether to use multiple threads), so this is only a draft and a suggestion.
Since keeping order of records (when comparing before/after low complexity masking) is not necessary, it is better to disable this option, since it degrades parallelism somewhat.
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