forked from organicmaps/organicmaps
Reserve memory for types
This commit is contained in:
parent
54ca63ea20
commit
3c153e5135
1 changed files with 1 additions and 0 deletions
|
@ -322,6 +322,7 @@ bool FeatureParams::FinishAddingTypes()
|
|||
static uint32_t const boundary = classif().GetTypeByPath({ "boundary", "administrative" });
|
||||
|
||||
vector<uint32_t> newTypes;
|
||||
newTypes.reserve(m_Types.size());
|
||||
|
||||
for (size_t i = 0; i < m_Types.size(); ++i)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue