Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the reserve interface to reduce the number of memory allocations #201

Closed
King-Authur opened this issue Jul 22, 2022 · 2 comments
Closed

Comments

@King-Authur
Copy link

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 added a commit to King-Authur/clickhouse-cpp that referenced this issue Jul 22, 2022
@Enmk
Copy link
Collaborator

Enmk commented Jul 22, 2022

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

@Enmk
Copy link
Collaborator

Enmk commented Nov 15, 2023

Closed by #341 and #330

@Enmk Enmk closed this as completed Nov 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants