clickhouse-cpp
clickhouse-cpp copied to clipboard
Add the reserve interface to reduce the number of memory allocations
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.
How do you plan to implement Reserve for ColumnString or ColumnLowCardinality?
Closed by #341 and #330