Repository navigation
Commit a39b8a5
committed
Address review: skip the fast path for a comprehension that is not inlined
Instead of copying a shared set in make_frozenset(), don't use the
frozenset() fast path for a set comprehension that is not inlined.
Only such a comprehension returns its set from a call, where a trace
function can keep it, so make_frozenset() keeps its assumption that
the set is uniquely referenced and other uses pay for no extra check.1 parent 65e3277 commit a39b8a5
2 files changed
Lines changed: 15 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4029 | 4029 | | |
4030 | 4030 | | |
4031 | 4031 | | |
| 4032 | + | |
| 4033 | + | |
| 4034 | + | |
| 4035 | + | |
| 4036 | + | |
| 4037 | + | |
| 4038 | + | |
| 4039 | + | |
| 4040 | + | |
| 4041 | + | |
| 4042 | + | |
| 4043 | + | |
| 4044 | + | |
| 4045 | + | |
4032 | 4046 | | |
4033 | 4047 | | |
4034 | 4048 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
215 | | - | |
216 | | - | |
217 | | - | |
| 215 | + | |
218 | 216 | | |
219 | 217 | | |
220 | 218 | | |
| |||
0 commit comments