mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 17:12:03 +00:00
Do not overallocate when creating PODArray with given size
Another part of #12278
This commit is contained in:
parent
e06fd84ca7
commit
d42dbfce98
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user