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

Patch O(n^2) algorithm in VCFHeader.addMetadataLineLookupEntry() #3448

Closed
droazen opened this issue Aug 15, 2017 · 4 comments
Closed

Patch O(n^2) algorithm in VCFHeader.addMetadataLineLookupEntry() #3448

droazen opened this issue Aug 15, 2017 · 4 comments

Comments

@droazen
Copy link
Contributor

droazen commented Aug 15, 2017

VCFHeader.addMetadataLineLookupEntry() is showing up in profiles of, eg., the 20k gnomAD run as around ~15% of total runtime of 16-hour jobs. This is due to a O(n^2) algorithm that @cmnbroad identified. We should prioritize a fix for this in htsjdk.

@droazen
Copy link
Contributor Author

droazen commented Aug 15, 2017

@cmnbroad Could you please make this your highest priority when you get back? Thanks!

@cmnbroad
Copy link
Collaborator

@drozen htsjdk PR is here. I'm running gatk tests locally as a sanity check.

@cmnbroad
Copy link
Collaborator

Tests passed, PR is reviewed and merged into htsjdk.

@cmnbroad
Copy link
Collaborator

Closing via samtools/htsjdk#968 and #3504.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants