Commit a63c87f
authored
perf(types): avoid double iteration in transform_dict_value_to_str (#3988)
Combine the None-validation and str-conversion loops over dict.items()
into a single pass, and rename the `dict` parameter to `d` to stop
shadowing the builtin.
Fixes #39871 parent 8c96d42 commit a63c87f
1 file changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
| 79 | + | |
79 | 80 | | |
80 | 81 | | |
81 | | - | |
| 82 | + | |
| 83 | + | |
82 | 84 | | |
83 | 85 | | |
84 | 86 | | |
| |||
0 commit comments