Commit 7726c2d
authored
[mypyc] feat: implement try_getting_literal in preallocate helper
During the rtuple boxing stage, if any of the values are a known Literal type we can skip the struct access and just load the static literal1 parent 4171da0 commit 7726c2d
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
255 | 256 | | |
256 | 257 | | |
257 | 258 | | |
258 | | - | |
| 259 | + | |
259 | 260 | | |
260 | 261 | | |
261 | 262 | | |
| |||
0 commit comments