[generator] Optimize EmitterSimple: empty Polygonizer::m_currentNames per feature

This commit is contained in:
Anatoly Serdtcev 2019-06-03 12:05:08 +03:00
parent 2f393239df
commit 4e6c19c508

View file

@ -16,7 +16,11 @@ void EmitterSimple::GetNames(std::vector<std::string> & names) const
void EmitterSimple::Process(FeatureBuilder1 & fb)
{
auto & polygonizer = m_regionGenerator->Parent();
// Emit each feature independently: clear current country names (see Polygonizer::GetCurrentNames()).
polygonizer.Start();
(*m_regionGenerator)(fb);
polygonizer.Finish();
}
void EmitterPreserialize::Process(FeatureBuilder1 & fb)