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

AbstractBAMFileIndex.query array list optimization #4

Closed
wants to merge 2 commits into from
Closed

AbstractBAMFileIndex.query array list optimization #4

wants to merge 2 commits into from

Conversation

BeatWolf
Copy link
Contributor

I was having some performance problems when using getSpanOverlapping. I identified one of the issues to be the creation of many unneeded empty Arraylists in the query function. This patch only creates an arraylist when it is actually needed, otherwise the much faster Collections.emptyList() is used.
In my usecase i saw a 40% speedup, this may be different on different datasets, but there should be no reason for any performance decrease in any situation.

@alecw
Copy link
Contributor

alecw commented May 20, 2014

Hi Beat,

I pulled down your changes, rebased them, submitted another pull request, and merge it.

-Alec

@alecw alecw closed this May 20, 2014
jmthibault79 added a commit that referenced this pull request Mar 26, 2019
# This is the 1st commit message:

move Container.setByteOffset() call inside ContainerIO.readContainer()
- also ContainerHeaderIO.readContainerHeader()

restrict access to setByteOffset() and encapsulate Container.slices

# This is the commit message #2:

oops

# This is the commit message #3:

a little unrelated cleanup

# This is the commit message #4:

oops

# This is the commit message #5:

better CRAIEntryTest

# This is the commit message #6:

test improvements and a fix

# This is the commit message #7:

comment

# This is the commit message #8:

javadoc

# This is the commit message #9:

review comments

# This is the commit message #10:

comments and clarification for CRAMBAIIndexer
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