Skip to content

Suggestion: parallelize low complexity masking#39

Open
tskir wants to merge 3 commits into
DerrickWood:masterfrom
tskir:patch-1
Open

Suggestion: parallelize low complexity masking#39
tskir wants to merge 3 commits into
DerrickWood:masterfrom
tskir:patch-1

Conversation

@tskir

@tskir tskir commented Aug 11, 2018

Copy link
Copy Markdown

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

tskir commented Aug 11, 2018

Copy link
Copy Markdown
Author

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