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

Avoid cloning prepared metadata fields #982

Merged
merged 2 commits into from Jan 9, 2023

Conversation

rukai
Copy link
Member

@rukai rukai commented Dec 22, 2022

PreparedMetadata contains a bunch of allocating fields we dont actually use like col_specs and global_table_spec.table_name.
So I created a cut down version of PreparedMetadata to save 2 clones of these unused allocations.
This saves ~0.5% in the flamegraph but this would have an even larger affect when the col_specs field has more complicated values in it.

@conorbros conorbros merged commit c2dafcb into shotover:main Jan 9, 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

Successfully merging this pull request may close these issues.

None yet

3 participants