Commit ff29488
committed
Revert "Make Add non-blocking"
This reverts commit ce23de5.
Speedup is tiny and at the expense of increased mem usage (which due to
increasing GC pressure is likely the explanation why its so small), so
doesn't seem worth it overall:
```
goos: darwin
goarch: arm64
pkg: sigs.k8s.io/controller-runtime/pkg/controller/priorityqueue
cpu: Apple M2 Pro
│ blocking.txt │ non-blocking.txt │
│ sec/op │ sec/op vs base │
AddGetDone-10 1.320m ± 1% 1.410m ± 0% +6.81% (p=0.000 n=10)
AddOnly-10 373.9µ ± 1% 343.2µ ± 1% -8.22% (p=0.000 n=10)
AddLockContended-10 375.8µ ± 1% 342.8µ ± 1% -8.78% (p=0.000 n=10)
geomean 570.3µ 549.4µ -3.66%
│ blocking.txt │ non-blocking.txt │
│ B/op │ B/op vs base │
AddGetDone-10 109.9Ki ± 0% 164.2Ki ± 0% +49.42% (p=0.000 n=10)
AddOnly-10 553.0 ± 2% 56045.0 ± 0% +10034.72% (p=0.000 n=10)
AddLockContended-10 569.0 ± 6% 56045.0 ± 0% +9749.74% (p=0.000 n=10)
geomean 3.207Ki 78.94Ki +2361.60%
│ blocking.txt │ non-blocking.txt │
│ allocs/op │ allocs/op vs base │
AddGetDone-10 3.013k ± 0% 5.001k ± 0% +65.98% (p=0.000 n=10)
AddOnly-10 16.00 ± 6% 2000.00 ± 0% +12400.00% (p=0.000 n=10)
AddLockContended-10 16.00 ± 6% 2000.00 ± 0% +12400.00% (p=0.000 n=10)
geomean 91.71 2.715k +2860.01%
```1 parent ce23de5 commit ff29488
1 file changed
+38
-61
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
64 | | - | |
65 | 63 | | |
66 | 64 | | |
67 | 65 | | |
| |||
90 | 88 | | |
91 | 89 | | |
92 | 90 | | |
93 | | - | |
94 | 91 | | |
95 | 92 | | |
96 | 93 | | |
| |||
120 | 117 | | |
121 | 118 | | |
122 | 119 | | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
| 120 | + | |
| 121 | + | |
155 | 122 | | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
161 | 128 | | |
| 129 | + | |
162 | 130 | | |
163 | | - | |
164 | | - | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
165 | 143 | | |
166 | | - | |
| 144 | + | |
167 | 145 | | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
168 | 149 | | |
169 | 150 | | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
177 | 160 | | |
| 161 | + | |
| 162 | + | |
178 | 163 | | |
179 | | - | |
180 | 164 | | |
181 | | - | |
182 | | - | |
183 | | - | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
184 | 168 | | |
185 | 169 | | |
186 | 170 | | |
| |||
195 | 179 | | |
196 | 180 | | |
197 | 181 | | |
198 | | - | |
199 | 182 | | |
200 | 183 | | |
201 | 184 | | |
202 | 185 | | |
203 | 186 | | |
204 | | - | |
205 | 187 | | |
206 | 188 | | |
207 | 189 | | |
| |||
211 | 193 | | |
212 | 194 | | |
213 | 195 | | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | 196 | | |
220 | 197 | | |
221 | 198 | | |
| |||
0 commit comments