diff options
author | Anatoly Serdtcev <serdtcev@maps.me> | 2019-06-03 12:05:08 +0300 |
---|---|---|
committer | Anatoly Serdtcev <serdtcev@maps.me> | 2019-06-03 12:58:36 +0300 |
commit | 4e6c19c5089fb6ff2d984633ff00617290f14b16 (patch) | |
tree | b73c3b58671ce508f269b7e6e1dd18ab3713753c /generator | |
parent | 2f393239dfd53f2bce6d0fdebcc2e62a5d067fe9 (diff) |
[generator] Optimize EmitterSimple: empty Polygonizer::m_currentNames per feature
Diffstat (limited to 'generator')
-rw-r--r-- | generator/emitter_simple.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/generator/emitter_simple.cpp b/generator/emitter_simple.cpp index 0eb14d6bc5..28f1836431 100644 --- a/generator/emitter_simple.cpp +++ b/generator/emitter_simple.cpp @@ -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) |