Skip to content
Snippets Groups Projects
Commit 379ea507 authored by Florian Schmaus's avatar Florian Schmaus
Browse files

[WorkerLocalData] Reserve space in std::vector

parent 987c17e1
No related branches found
No related tags found
1 merge request!224[stats] blocked contexts
......@@ -25,6 +25,7 @@ class WorkerLocalData {
auto getSnapshot() -> std::vector<D> {
std::vector<D> res;
res.reserve(workerLocalData.size());
for (D* data : workerLocalData) {
res.emplace_back(*data);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment