Reduce memory use of FeatureIndex (#2364)

This commit is contained in:
Tim Sylvester
2024-05-16 07:17:24 -07:00
committed by GitHub
parent aff5693fb9
commit b812e97aaf
15 changed files with 211 additions and 64 deletions

View File

@@ -363,7 +363,9 @@ void GeometryTileWorker::parse() {
ImageDependencies imageDependencies;
// Create render layers and group by layout
std::unordered_map<std::string, std::vector<Immutable<style::LayerProperties>>> groupMap;
mbgl::unordered_map<std::string, std::vector<Immutable<style::LayerProperties>>> groupMap;
groupMap.reserve(layers->size());
for (auto layer : *layers) {
groupMap[layoutKey(*layer->baseImpl)].push_back(std::move(layer));
}