don't use reserve
as undelying data format doesn't allow for efficient distance
implementation.
This commit is contained in:
parent
e0a251c456
commit
947ce9a8d1
1 changed files with 0 additions and 5 deletions
|
@ -372,10 +372,7 @@ private:
|
||||||
{
|
{
|
||||||
double x = 0.0;
|
double x = 0.0;
|
||||||
double y = 0.0;
|
double y = 0.0;
|
||||||
auto size = std::distance(begin, end) / dim;
|
|
||||||
ring.reserve(close ? size + 1 : size);
|
|
||||||
std::size_t count = 0;
|
std::size_t count = 0;
|
||||||
|
|
||||||
for (auto it = begin; it != end; ++it)
|
for (auto it = begin; it != end; ++it)
|
||||||
{
|
{
|
||||||
std::int64_t delta= *it;
|
std::int64_t delta= *it;
|
||||||
|
@ -402,8 +399,6 @@ private:
|
||||||
double x = 0.0;
|
double x = 0.0;
|
||||||
double y = 0.0;
|
double y = 0.0;
|
||||||
auto pi = reader.get_packed_sint64();
|
auto pi = reader.get_packed_sint64();
|
||||||
auto size = std::distance(pi.first, pi.second) / dim;
|
|
||||||
multi_point.reserve(size);
|
|
||||||
std::size_t count = 0;
|
std::size_t count = 0;
|
||||||
for (auto it = pi.first; it != pi.second; ++it)
|
for (auto it = pi.first; it != pi.second; ++it)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue