Commit 8f8839e
committed
Remove the freelist scheme for setobjects.
The setobject freelist was consuming memory but not providing much value.
Even when a freelisted setobject was available, most of the setobject
fields still needed to be initialized and the small table still required
a memset(). This meant that the custom freelisting scheme for sets was
providing almost no incremental benefit over the default Python freelist
scheme used by _PyObject_Malloc() in Objects/obmalloc.c.1 parent ff6382b commit 8f8839e
3 files changed
+8
-49
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
109 | 108 | | |
110 | 109 | | |
111 | 110 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1955 | 1955 | | |
1956 | 1956 | | |
1957 | 1957 | | |
1958 | | - | |
1959 | 1958 | | |
1960 | 1959 | | |
1961 | 1960 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | 60 | | |
68 | 61 | | |
69 | 62 | | |
| |||
565 | 558 | | |
566 | 559 | | |
567 | 560 | | |
568 | | - | |
569 | | - | |
570 | | - | |
571 | | - | |
| 561 | + | |
572 | 562 | | |
573 | 563 | | |
574 | 564 | | |
| |||
1023 | 1013 | | |
1024 | 1014 | | |
1025 | 1015 | | |
1026 | | - | |
1027 | | - | |
1028 | | - | |
1029 | | - | |
1030 | | - | |
1031 | | - | |
1032 | | - | |
1033 | | - | |
1034 | | - | |
1035 | | - | |
1036 | | - | |
1037 | | - | |
1038 | | - | |
1039 | | - | |
1040 | | - | |
1041 | | - | |
| 1016 | + | |
| 1017 | + | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
1042 | 1022 | | |
1043 | 1023 | | |
1044 | 1024 | | |
| |||
1103 | 1083 | | |
1104 | 1084 | | |
1105 | 1085 | | |
1106 | | - | |
1107 | | - | |
1108 | | - | |
1109 | | - | |
1110 | | - | |
1111 | | - | |
1112 | | - | |
1113 | | - | |
1114 | | - | |
| 1086 | + | |
1115 | 1087 | | |
1116 | 1088 | | |
1117 | 1089 | | |
1118 | 1090 | | |
1119 | 1091 | | |
1120 | | - | |
1121 | 1092 | | |
1122 | 1093 | | |
1123 | 1094 | | |
1124 | | - | |
1125 | | - | |
1126 | | - | |
1127 | | - | |
1128 | | - | |
1129 | | - | |
1130 | | - | |
1131 | | - | |
1132 | | - | |
1133 | | - | |
1134 | 1095 | | |
1135 | 1096 | | |
1136 | 1097 | | |
| |||
0 commit comments