Repository navigation
Commit 1cb8325
committed
Use BUILD_MAP 0 + MAP_ADD for large dicts (>= 16 pairs)
Match CPython's compiler behavior: dicts with 16+ key-value pairs
use BUILD_MAP 0 followed by MAP_ADD for each pair, instead of
pushing all keys/values on the stack and calling BUILD_MAP N.1 parent 4f8450d commit 1cb8325
1 file changed
Lines changed: 2 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
723 | 723 | | |
724 | 724 | | |
725 | 725 | | |
726 | | - | |
727 | | - | |
728 | | - | |
| 726 | + | |
729 | 727 | | |
730 | 728 | | |
731 | 729 | | |
| |||
7046 | 7044 | | |
7047 | 7045 | | |
7048 | 7046 | | |
7049 | | - | |
7050 | | - | |
7051 | | - | |
7052 | | - | |
| 7047 | + | |
7053 | 7048 | | |
7054 | 7049 | | |
7055 | 7050 | | |
| |||
0 commit comments