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

FlatGFA: Hand-rolled GFA parser #154

Merged
merged 17 commits into from
Mar 17, 2024
Merged

FlatGFA: Hand-rolled GFA parser #154

merged 17 commits into from
Mar 17, 2024

Conversation

sampsyo
Copy link
Collaborator

@sampsyo sampsyo commented Mar 17, 2024

The next bottleneck in GFA parsing was the external rs-gfa library. I replaced this with a hand-rolled one.

Using the same measurement setup as #153:

chr22 chr8
originally 28s 49s
after #153 13s 18s
after this PR 7s 12s

So that's another 1.9x and 1.5x speedup over the last set of optimizations, for a total of 4x speedup over the first version.

It's clear that the bottleneck now is in the memcpying to the destination files, which is also avoidable (with some compromises).

@sampsyo sampsyo merged commit 031f235 into main Mar 17, 2024
3 checks passed
@sampsyo sampsyo deleted the polbin-hand-parse branch March 17, 2024 21:50
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