Skip to content

wincred: avoid repeated string->[]byte conversion#432

Closed
thaJeztah wants to merge 1 commit into
docker:mainfrom
thaJeztah:reduce_converts
Closed

wincred: avoid repeated string->[]byte conversion#432
thaJeztah wants to merge 1 commit into
docker:mainfrom
thaJeztah:reduce_converts

Conversation

@thaJeztah
Copy link
Copy Markdown
Member

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@thaJeztah
Copy link
Copy Markdown
Member Author

Actually, not sure if this was a good idea; I'm pretty sure Go is able to optimise this; perhaps only not for the Add case, but that's not a massive "hot path", so maybe we should not do this; let me do a quick check.

@thaJeztah
Copy link
Copy Markdown
Member Author

Yeah, confirmed; compiler inlines all those, except for the Add, which probably is too little to optimise; opened #433 instead

@thaJeztah thaJeztah closed this May 8, 2026
@thaJeztah thaJeztah deleted the reduce_converts branch May 8, 2026 10:02
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