提交 4deb6959 编写于 作者: A Alexey Milovidov

Improve performance for non-const polygons

上级 84dd802b
......@@ -212,7 +212,6 @@ public:
if (isTwoDimensionalArray(*block.getByPosition(arguments[1]).type))
{
std::cerr << "2d\n";
for (size_t i = 0; i < input_rows_count; ++i)
{
polygon.clear();
......@@ -225,7 +224,6 @@ public:
}
else
{
std::cerr << "1d\n";
for (size_t i = 0; i < input_rows_count; ++i)
{
polygon.clear();
......@@ -264,6 +262,7 @@ private:
template <typename T>
void parsePolygonPart(const IColumn & x_column, const IColumn & y_column, size_t begin, size_t end, T & out_container) const
{
out_container.reserve(end - begin);
for (size_t i = begin; i < end; ++i)
out_container.emplace_back(x_column.getFloat64(i), y_column.getFloat64(i));
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册