Skip to content

Commit

Permalink
Reserve memory for hash_map
Browse files Browse the repository at this point in the history
  • Loading branch information
xchang1 committed Dec 18, 2024
1 parent fcd3150 commit c88b64a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/subcommand/minimizer_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,7 @@ int main_minimizer(int argc, char** argv) {

//Map node id to what gets stored in the payload - either the zipcode or index into oversized_zipcodes
hash_map<vg::id_t, gbwtgraph::Payload> node_id_to_payload;
node_id_to_payload.reserve(gbz->graph.max_node_id() - gbz->graph.min_node_id());

// Build the index.
if (progress) {
Expand Down

1 comment on commit c88b64a

@adamnovak
Copy link
Member

Choose a reason for hiding this comment

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

vg CI tests complete for branch update-minimizers. View the full report here.

16 tests passed, 0 tests failed and 0 tests skipped in 17593 seconds

Please sign in to comment.