Reserve memory for HashTable in ColumnUnique.

This commit is contained in:
Nikolai Kochetov 2018-07-20 19:16:33 +03:00
parent 7f8688b67b
commit df379afde4

View File

@ -223,7 +223,7 @@ void ColumnUnique<ColumnType>::buildIndex()
return;
auto column = getRawColumnPtr();
index = std::make_unique<IndexMapType>();
index = std::make_unique<IndexMapType>(column_holder->size());
for (auto row : ext::range(numSpecialValues(), column->size()))
{