Commit 3e0653f
authored
Optimize bitmask finding some more. (#326)
```
| Before [e26fb39] <main> | After [9753dfea] <optimize-again> | Ratio | Benchmark (Parameter) |
|----------------------------|-------------------------------------|---------|------------------------------------------------------------|
| 4.10±0.05ms | 3.64±0.04ms | 0.89 | cohorts.ERA5MonthHour.time_find_group_cohorts |
| 4.56±0.05ms | 4.00±0.06ms | 0.88 | cohorts.ERA5MonthHourRechunked.time_find_group_cohorts |
| 3.31±0.08ms | 2.79±0.01ms | 0.84 | cohorts.ERA5DayOfYear.time_find_group_cohorts |
| 8.15±0.05ms | 6.78±0.02ms | 0.83 | cohorts.OISST.time_find_group_cohorts |
| 659±10μs | 519±6μs | 0.79 | cohorts.PerfectBlockwiseResampling.time_find_group_cohorts |
| 663±20μs | 487±5μs | 0.73 | cohorts.PerfectMonthly.time_find_group_cohorts |
| 2.75±0.03ms | 1.93±0.03ms | 0.7 | cohorts.ERA5Google.time_find_group_cohorts |
```1 parent e26fb39 commit 3e0653f
1 file changed
+2
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
244 | 244 | | |
245 | 245 | | |
246 | 246 | | |
247 | | - | |
248 | 247 | | |
249 | 248 | | |
250 | 249 | | |
251 | 250 | | |
252 | | - | |
| 251 | + | |
253 | 252 | | |
254 | 253 | | |
255 | 254 | | |
| |||
259 | 258 | | |
260 | 259 | | |
261 | 260 | | |
262 | | - | |
263 | 261 | | |
264 | 262 | | |
265 | | - | |
| 263 | + | |
266 | 264 | | |
267 | 265 | | |
268 | 266 | | |
| |||
0 commit comments