Commit f71b8bf0 authored by Cyprien Borée's avatar Cyprien Borée

Reallocate once nb_sorted == nb_inserted

for more informations, see #3393.
parent 43023e4f
Pipeline #35227 failed with stages
in 2 minutes and 48 seconds
......@@ -109,9 +109,8 @@ void BinReadStorage::add(Sequence &s) {
} else {
// We don't have space left.
// Either we don't insert that sequence or it replaces another one
if(nb_inserted >= nb_stored){
if(nb_inserted == nb_stored){
reallocate();
nb_stored *= nb_bins;
}
if (bin > smallest_bin_not_empty) {
bins[smallest_bin_not_empty].erase(bins[smallest_bin_not_empty].begin());
......
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