clickhouse-cpp icon indicating copy to clipboard operation
clickhouse-cpp copied to clipboard

Add the reserve interface to reduce the number of memory allocations

Open King-Authur opened this issue 3 years ago • 1 comments

The clickhouse writing service knows the number of rows of data when accumulating data. At this time, we can directly calculate the memory space they need, and allocate them directly through Reserve, which can reduce the number of memory allocations and reduce the time consuming when constructing columns.

King-Authur avatar Jul 22 '22 08:07 King-Authur

How do you plan to implement Reserve for ColumnString or ColumnLowCardinality?

Enmk avatar Jul 22 '22 20:07 Enmk

Closed by #341 and #330

Enmk avatar Nov 15 '23 23:11 Enmk