Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
Switch pattern layout features container to list from vector for bett…
Browse files Browse the repository at this point in the history
…er insert performance
  • Loading branch information
ahk committed Dec 5, 2019
1 parent a779b11 commit 403df7b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/mbgl/layout/pattern_layout.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#pragma once
#include <list>
#include <mbgl/geometry/feature_index.hpp>
#include <mbgl/layout/layout.hpp>
#include <mbgl/renderer/bucket_parameters.hpp>
Expand Down Expand Up @@ -190,7 +191,7 @@ class PatternLayout : public Layout {
std::string bucketLeaderID;

const std::unique_ptr<GeometryTileLayer> sourceLayer;
std::vector<PatternFeature> features;
std::list<PatternFeature> features;
typename LayoutPropertiesType::Unevaluated unevaluatedLayout;
typename LayoutPropertiesType::PossiblyEvaluated layout;

Expand Down

0 comments on commit 403df7b

Please sign in to comment.