Skip to content

Reorder fielsd to possibly save memory footprint - #19

Merged
mattwar merged 1 commit into
mainfrom
ReorderFields
Sep 5, 2026
Merged

Reorder fielsd to possibly save memory footprint#19
mattwar merged 1 commit into
mainfrom
ReorderFields

Conversation

@mattwar

@mattwar mattwar commented Sep 5, 2026

Copy link
Copy Markdown
Owner

Reorder fields so tag (_kind) is last so it may possibly fit within the shadow (unused padding bytes) from the overlapped field and the forced padded size of the overall union struct if it contains any pointers/references.

@mattwar
mattwar merged commit ec9ee25 into main Sep 5, 2026
1 check passed
@mattwar
mattwar deleted the ReorderFields branch September 5, 2026 18:22
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