Skip to content

Commit

Permalink
PolygonBuilder: presize vector
Browse files Browse the repository at this point in the history
  • Loading branch information
dbaston committed Dec 6, 2022
1 parent 49b79c3 commit 9af6077
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/operation/overlayng/PolygonBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ std::vector<std::unique_ptr<Polygon>>
PolygonBuilder::computePolygons(const std::vector<OverlayEdgeRing*>& shells) const
{
std::vector<std::unique_ptr<Polygon>> resultPolyList;
resultPolyList.reserve(shells.size());
// add Polygons for all shells
for (OverlayEdgeRing* er : shells) {
std::unique_ptr<Polygon> poly = er->toPolygon(geometryFactory);
Expand Down

0 comments on commit 9af6077

Please sign in to comment.