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

vtorc: pre-alloc underlying array in sqlutils.RowToArray #557

Closed
wants to merge 1 commit into from

Conversation

timvaillancourt
Copy link
Member

Description

This PR adds an optimisation to a hot path of vtorc: sqlutils.RowToArray

This change ensures the backing array of the slice made by this func is pre-allocated to the known static size, which can avoid overhead in the runtime

Related Issue(s)

Checklist

  • "Backport to:" labels have been added if this change should be back-ported
  • Tests were added or are not required
  • Did the new or modified tests pass consistently locally and on the CI
  • Documentation was added or is not required

Deployment Notes

Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com>
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.

1 participant