Skip to content

encoding.binary: use unions for small speed increase and readability#25867

Merged
spytheman merged 5 commits into
vlang:masterfrom
JalonSolov:new_binary
Nov 30, 2025
Merged

encoding.binary: use unions for small speed increase and readability#25867
spytheman merged 5 commits into
vlang:masterfrom
JalonSolov:new_binary

Conversation

@JalonSolov

Copy link
Copy Markdown
Collaborator

Easier to read code (verified on discord) plus small performance increase.

@JalonSolov JalonSolov changed the title New binary encoding.binary: use unions for small speed increase and readability Nov 30, 2025
@spytheman

Copy link
Copy Markdown
Contributor

The code here is longer in all cases, but if it is more performant, fine.

@spytheman spytheman merged commit 3caa1b7 into vlang:master Nov 30, 2025
73 checks passed
@JalonSolov JalonSolov deleted the new_binary branch February 7, 2026 19:11
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