Skip to content

Small samtools stats speed up, ~5%. - #893

Open
jkbonfield wants to merge 3 commits into
samtools:developfrom
jkbonfield:stats_speed
Open

jkbonfield wants to merge 3 commits into
samtools:developfrom
jkbonfield:stats_speed

Conversation

@jkbonfield

Copy link
Copy Markdown
Contributor

(NB: No point considering for this release.)

I experimented and got a barely worth it speed increase, but it's there if we want it. No worries if we don't. :-)

This was the biggest single slow down, but the next lot are rather spread around so there isn't one single gain to be had I think (short of a larger overhaul).

@valeriuo
valeriuo self-requested a review July 12, 2018 13:08

@valeriuo valeriuo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I got around 3%, but still good.

…lacial.

Time for a small test file dropped from 119s to 43s.
(That's still 100x slower than -i 8000 though...)

Sadly I've only now noticed that -i 0 is totally undocumented and so I
doubt anyone runs it in this manner.  (I'm half tempted to remove this
complex piece of code entirely!)
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