Skip to content

Add support for aliases on tags#437

Open
natewernimont-wk wants to merge 1 commit intotinylib:masterfrom
natewernimont-wk:add-aliases
Open

Add support for aliases on tags#437
natewernimont-wk wants to merge 1 commit intotinylib:masterfrom
natewernimont-wk:add-aliases

Conversation

@natewernimont-wk
Copy link
Copy Markdown

@natewernimont-wk natewernimont-wk commented Apr 1, 2026

I maintain usages of msgp that initially neglected to specify short name tags. As such, their full msgp tag is a quite long name. In order to optimize the byte allocations of these objects, I'd like to move the serialized tag to a new name. Doing so today would require manually editing the generated code or hand-rolling our own.

This PR adds the ability to add an alias=<oldName1>;<oldName2>;... tag to msgp labels. Aliases are only supported on deserialization - they do not affect the key at serialization time.

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.

1 participant