Skip to content

Commit 5f35e79

Browse files
committed
Revert
1 parent e908d7e commit 5f35e79

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.clang-tidy

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,7 @@ ExtraArgsBefore:
66
Checks: >
77
-*,
88
performance*
9+
CheckOptions:
10+
# Design decision: pass nb::ndarray by value, not const ref.
11+
- key: performance-unnecessary-value-param.AllowedTypes
12+
value: 'nanobind::ndarray'

cpp/dolfinx/graph/utils.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ graph::comm_graph(const common::IndexMap& map, int root)
9494
dolfinx::MPI::check_error(comm, ierr);
9595

9696
std::vector<std::tuple<int, std::size_t, std::int8_t>> e_data;
97+
e_data.reserve(edges_remote.size());
9798
for (std::size_t i = 0; i < edges_remote.size(); ++i)
9899
e_data.emplace_back(edges_remote[i], weights_remote[i], markers_remote[i]);
99100
return graph::AdjacencyList(std::move(e_data),

0 commit comments

Comments
 (0)