未验证 提交 8b3e2399 编写于 作者: A Alexander Kuzmenkov 提交者: GitHub

Merge pull request #13589 from ClickHouse/aku/podarray

Do not overallocate when creating PODArray with given size
......@@ -111,7 +111,7 @@ protected:
void alloc_for_num_elements(size_t num_elements)
{
alloc(roundUpToPowerOfTwoOrZero(minimum_memory_for_elements(num_elements)));
alloc(minimum_memory_for_elements(num_elements));
}
template <typename ... TAllocatorParams>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册