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
Fix container inefficiency in GenericFastaHeaderParser.java #1089
Conversation
We cannot figure out why the CI is failing because the error still occurs even after we undo the patch. |
The PR looks good to me.
Which does not look relevant here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM thanks
The test problems is unrelated. I'll push a fix to master.
Could you merge master into your branch to trigger the tests again? |
We could not pass the biojava-integrationtest. The error log is
Maybe |
Indeed, it looks like it has been down for many days now. Which is odd. It's a popular resource and there's even a very recent publication about it (https://journals.plos.org/ploscompbiol/article?id=10.1371/journal.pcbi.1011586). I'll see if I can contact them. |
Hi, we have found that this file is re-available. |
Thanks... tests are passing finally! |
Hi,
We find that there exist container inefficiency in GenericFastaHeaderParser.java.
In particular, at lines 96 and 97 in GenericFastaHeaderParser.java, the for loop keep allocating the
data
array and transform container objectvalues
to array, which incurs redundant memory allocation and container operations.We discovered the above containers inefficiencies by our tool cinst. The patch is submitted. Could you please check and accept it? We have tested the patch on our PC. The patched program works well.