Skip to content

Optimize encoding maps#4494

Merged
ilidemi merged 3 commits into
mainfrom
optimize-encoding-maps
Jun 26, 2026
Merged

Optimize encoding maps#4494
ilidemi merged 3 commits into
mainfrom
optimize-encoding-maps

Conversation

@ilidemi

@ilidemi ilidemi commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #4436

Optimize building two extra maps per event on go-mysql side when re-encoding won't be needed (common case)

@ilidemi ilidemi requested a review from a team as a code owner June 24, 2026 22:29
@ilidemi ilidemi requested a review from dtunikov June 24, 2026 22:30
@claude

claude Bot commented Jun 24, 2026

Copy link
Copy Markdown

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

Comment thread flow/connectors/mysql/charset.go Outdated
columnCharset []uint64,
enumMap map[int][]string,
setMap map[int][]string,
colEncodings *[]encoding.Encoding,

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

nit: I think standart go way would be to return []encoding.Encoding instead of passing *[]encoding.Encoding (similar to how append function works)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

nice, agreed

@ilidemi ilidemi merged commit d1b3142 into main Jun 26, 2026
18 checks passed
@ilidemi ilidemi deleted the optimize-encoding-maps branch June 26, 2026 08:32
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.

2 participants