diff options
Diffstat (limited to 'ripser.cpp')
-rw-r--r-- | ripser.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1223,6 +1223,7 @@ int main( int argc, char** argv ) { #endif std::unordered_map<index_t, index_t> pivot_column_index; + pivot_column_index.reserve(columns_to_reduce.size()); compute_pairs( columns_to_reduce, @@ -1258,6 +1259,7 @@ int main( int argc, char** argv ) { rips_filtration_comparator<decltype(dist)> comp(dist, dim + 1, binomial_coeff); std::unordered_map<index_t, index_t> pivot_column_index; + pivot_column_index.reserve(columns_to_reduce.size()); compute_pairs( columns_to_reduce, |