Reserve size of some containers we are filling
This commit is contained in:
parent
812e3b5f03
commit
19dc6cadea
31 changed files with 317 additions and 209 deletions
|
|
@ -527,6 +527,7 @@ EventStore::reactions(const std::string &event_id)
|
|||
}
|
||||
|
||||
QVariantList temp;
|
||||
temp.reserve(static_cast<int>(reactions.size()));
|
||||
for (auto &reaction : reactions) {
|
||||
const auto &agg = aggregation[reaction.key_.toStdString()];
|
||||
reaction.count_ = agg.count;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue