Commit a401d94
committed
Box ProcType in Type enum
ProcType embeds Function and an optional BlockType directly, making it
~400 bytes while the next-largest variant is 88 bytes. Since the enum
size is that of its largest variant, every Type occupied 400 bytes.
Boxing the rare Proc variant shrinks Type to 96 bytes and resolves the
clippy::large_enum_variant error under -D warnings.
https://claude.ai/code/session_01Bb4HnSKGf3PMGo1F8LUpz41 parent a12e0e8 commit a401d94
2 files changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
157 | | - | |
| 157 | + | |
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
162 | | - | |
| 162 | + | |
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
0 commit comments