Commit ec3167a3 authored by Mikaël Salson's avatar Mikaël Salson

core/read_storage.cpp: Call reallocate just once as soon as we have too many sequences

See #3393
parent 2c916ebe
......@@ -90,6 +90,9 @@ void BinReadStorage::addScore(size_t bin, float score) {
void BinReadStorage::add(Sequence &s) {
if(nb_stored == getMaxNbReadsStored() && nb_inserted == nb_stored){
float score = scorer->getScore(s);
size_t bin = scoreToBin(score);
addScore(bin, score);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment