Skip to content

Conversation

@copybara-service
Copy link

Removed indirection for sub-messages.

To do this, we use weak definitions of actual MiniTables for tree shaking, instead of pointers to MiniTables. This means that a tree shaken MiniTable will take up sizeof(upb_MiniTable) space, instead of sizeof(void*), which is a size regression. On the other hand, this saves sizeof(void*) bytes from every sub-message field, so it may be a size improvement overall.

To do this, we use weak definitions of actual MiniTables for tree shaking, instead of pointers to MiniTables.  This means that a tree shaken MiniTable will take up `sizeof(upb_MiniTable)` space, instead of `sizeof(void*)`, which is a size regression.  On the other hand, this saves `sizeof(void*)` bytes from every sub-message field, so it may be a size improvement overall.

PiperOrigin-RevId: 823966877
@github-actions
Copy link

github-actions bot commented Nov 3, 2025

Auto-closing Copybara pull request

@github-actions github-actions bot closed this Nov 3, 2025
@github-actions github-actions bot deleted the test_823966877 branch November 3, 2025 10:08
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