Commit 6e88ae2
authored
Inline register_type_data to cut down on binary size (#22030)
# Objective
My [TypeData dependencies](#22016 ) PR regressed native binary size by
~8mb.
(thank you [twitcher](https://github.com/bevyengine/twitcher/))
<img width="858" height="306" alt="image"
src="https://github.com/user-attachments/assets/e6d86c67-33f6-4280-bee4-49771014b678"
/>
## Solution
- Inline `register_type_data`, which restores the original binary size:
- `release breakout` before #22016: 127.3mb
- `release breakout` after #22016: 136.4mb
- `release breakout` after this PR: 127.4mb1 parent e8520c1 commit 6e88ae2
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
590 | 590 | | |
591 | 591 | | |
592 | 592 | | |
| 593 | + | |
593 | 594 | | |
594 | 595 | | |
595 | 596 | | |
| |||
0 commit comments