Skip to content
Snippets Groups Projects
Commit 57f09ae6 authored by Nora Abi Akar's avatar Nora Abi Akar Committed by Benjamin Cumming
Browse files

remove reserve (#904)

Calling vector::reserve to increase the size of the synapse vector by 1 causes significant performance degradation.
parent 327bd21b
No related branches found
No related tags found
No related merge requests found
...@@ -159,7 +159,6 @@ struct cable_cell_impl { ...@@ -159,7 +159,6 @@ struct cable_cell_impl {
lid_range place(const mlocation_list& locs, const Desc& desc, std::vector<T>& list) { lid_range place(const mlocation_list& locs, const Desc& desc, std::vector<T>& list) {
const auto first = list.size(); const auto first = list.size();
list.reserve(first+locs.size());
for (auto loc: locs) { for (auto loc: locs) {
list.push_back({loc, desc}); list.push_back({loc, desc});
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment