File tree Expand file tree Collapse file tree
include/CXXGraph/Partitioning Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -212,11 +212,7 @@ int CoordinatedPartitionState<T>::getMachineWithMinWeight(
212212template <typename T>
213213std::vector<int > CoordinatedPartitionState<T>::getMachines_load() const {
214214 std::lock_guard<std::mutex> lock (*machines_load_edges_mutex);
215- std::vector<int > result;
216- for (const auto &machines_load_edges_it : machines_load_edges) {
217- result.push_back (machines_load_edges_it);
218- }
219- return result;
215+ return machines_load_edges;
220216}
221217template <typename T>
222218size_t CoordinatedPartitionState<T>::getTotalReplicas() const {
@@ -257,11 +253,7 @@ template <typename T>
257253std::vector<int > CoordinatedPartitionState<T>::getMachines_loadVertices()
258254 const {
259255 std::lock_guard<std::mutex> lock (*machines_load_vertices_mutex);
260- std::vector<int > result;
261- for (const auto &machines_load_vertices_it : machines_load_vertices) {
262- result.push_back (machines_load_vertices_it);
263- }
264- return result;
256+ return machines_load_vertices;
265257}
266258
267259template <typename T>
You can’t perform that action at this time.
0 commit comments