Skip to content

[Improvement] improves performance by pre-allocating memory in wide_column_serialization.cc #13512

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

LiangHuDream
Copy link

@LiangHuDream LiangHuDream commented Apr 2, 2025

Summary:
Before modification: Each append may trigger dynamic capacity expansion, resulting in one million memory allocations.
Modified: The reserve function allocates memory for one time.

@LiangHuDream
Copy link
Author

LiangHuDream commented Apr 3, 2025

@facebook-github-bot@pdillinger@ltamasi@jaykorean@mszeszko-meta@hx235, @anand1976
hx235, Hello, dear commiters, this is my first submission request. It is aimed at improving performance. It has been over 12 hours and has been verified to be error-free. Please take a look. If there are no issues, could you please help incorporate it? Thank you very much.
Sincerely, Liang.

@LiangHuDream LiangHuDream changed the title improves performance by pre-allocating memory in wide_column_serialization.cc [Improvement] improves performance by pre-allocating memory in wide_column_serialization.cc Apr 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants