Commit 8f79dbe
authored
Reduce reflect size (#22592)
# Objective
After #22452 is merged, the binary size increased a lot (and also
compile time). Try to decrease binary size again.
## Solution
Change the methods from generic to non-generic.
## Testing
compile `3d_shapes` example on macOS:
* before #22452 : 94.5mb
* at #22452 : 97.7mb
* at #22452 + to dynamic (another attempt) : 94.9mb
* at #22452 + dyn (**this PR**) : 94.5mb
also tried to see what if we disable reflection based cmp/eq entirely
(which makes tests fails):
* disable reflection based cmp/eq entirely: 94.1mb1 parent 8b25e04 commit 8f79dbe
File tree
3 files changed
+15
-25
lines changed- crates/bevy_reflect/src
- enums
3 files changed
+15
-25
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
| 12 | + | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | | - | |
| 32 | + | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
| 97 | + | |
| 98 | + | |
102 | 99 | | |
103 | 100 | | |
104 | 101 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
516 | 516 | | |
517 | 517 | | |
518 | 518 | | |
519 | | - | |
520 | | - | |
| 519 | + | |
| 520 | + | |
521 | 521 | | |
522 | 522 | | |
523 | 523 | | |
| |||
545 | 545 | | |
546 | 546 | | |
547 | 547 | | |
548 | | - | |
549 | | - | |
550 | | - | |
551 | | - | |
552 | | - | |
| 548 | + | |
| 549 | + | |
553 | 550 | | |
554 | 551 | | |
555 | 552 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
428 | 428 | | |
429 | 429 | | |
430 | 430 | | |
431 | | - | |
432 | | - | |
433 | | - | |
434 | | - | |
435 | | - | |
| 431 | + | |
| 432 | + | |
436 | 433 | | |
437 | 434 | | |
438 | 435 | | |
| |||
454 | 451 | | |
455 | 452 | | |
456 | 453 | | |
457 | | - | |
458 | 454 | | |
459 | 455 | | |
460 | 456 | | |
461 | 457 | | |
462 | | - | |
463 | | - | |
464 | | - | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
465 | 461 | | |
466 | 462 | | |
467 | 463 | | |
| |||
0 commit comments