Skip to content

fix: significant speed increase for merge-vcfs#101

Merged
JeremyWesthead merged 2 commits intomainfrom
fix/merge-vcf-speed
Mar 13, 2026
Merged

fix: significant speed increase for merge-vcfs#101
JeremyWesthead merged 2 commits intomainfrom
fix/merge-vcf-speed

Conversation

@JeremyWesthead
Copy link
Copy Markdown
Collaborator

Theory is that for some reason when Python was indexing vcf.calls[position], it was cloning either the entire vcf.calls or the entire vcf object, leading to each iteration taking ~0.05s. Just iterating the .items() avoids this - making each iteration ~10^-7s

@JeremyWesthead JeremyWesthead requested a review from mcolpus March 13, 2026 13:59
@JeremyWesthead JeremyWesthead merged commit 0fb6e48 into main Mar 13, 2026
1 check passed
@JeremyWesthead JeremyWesthead deleted the fix/merge-vcf-speed branch March 13, 2026 14:02
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.

2 participants