Skip to content

Conversation

@jycor
Copy link
Contributor

@jycor jycor commented Aug 6, 2025

This PR removes extra sql.Row allocations where it has no impact on logic.

Doltgres error: dolthub/doltgresql#1735

@jycor jycor marked this pull request as draft August 6, 2025 23:41
@jycor jycor changed the title replace append with cast allocate fewer sql.Rows Aug 8, 2025
@jycor jycor marked this pull request as ready for review August 8, 2025 21:21
Copy link
Contributor

@fulghum fulghum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

Comment on lines 120 to 121
keyRow sql.Row
keySch sql.Schema
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(minor) Would be nice to add a comment for these explaining that they are just buffers to prevent having to reallocate memory.

@jycor jycor merged commit a2ed59d into main Aug 11, 2025
8 checks passed
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.

3 participants