From: Wolfgang Bangerth Date: Thu, 30 Mar 2023 17:52:08 +0000 (-0600) Subject: Minor performance improvement. X-Git-Tag: v9.5.0-rc1~388^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fe9414a2e86e443903aa672e4ec0043b1569a32b;p=dealii.git Minor performance improvement. --- diff --git a/include/deal.II/grid/cell_id_translator.h b/include/deal.II/grid/cell_id_translator.h index 9ed01cbfe1..84ee3338d6 100644 --- a/include/deal.II/grid/cell_id_translator.h +++ b/include/deal.II/grid/cell_id_translator.h @@ -158,6 +158,7 @@ namespace internal #endif // Now do the whole computation again, but for real: + tree_sizes.reserve(n_global_levels + 1); tree_sizes.push_back(0); for (unsigned int i = 0; i < n_global_levels; ++i) tree_sizes.push_back(tree_sizes.back() +