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

Improve performance of FASTA indexing #30

Merged
merged 1 commit into from
Mar 3, 2017

Conversation

totakke
Copy link
Member

@totakke totakke commented Mar 3, 2017

Current FASTA indexer is critically slow because it uses java.io.RandomAccessFile to read a source FASTA. This commit improves the performance by using java.io.BufferedReader.

The following showd results of indexing 101MB FASTA.

;; before:
(time (fai/create-index "/tmp/refMrna.fa" "/tmp/refMrna.fa.fai"))
"Elapsed time: 73621.207302 msecs"

;; after:
(time (fai/create-index "/tmp/refMrna.fa" "/tmp/refMrna.fa.fai"))
"Elapsed time: 2986.332916 msecs"

@totakke totakke requested a review from alumi March 3, 2017 09:25
Copy link
Member

@alumi alumi left a comment

Choose a reason for hiding this comment

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

Simple yet effective solution!

@alumi alumi merged commit be6037e into master Mar 3, 2017
@alumi alumi deleted the feature/improve-fasta-indexer branch March 3, 2017 15:18
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