Commit 47c2b28
committed
tuner: update binary search in tuner decision script.
Today, this implementation assumes that there are no repeated regions,
as every algo-proto choice has a single region.
E.g. tree-ll, tree-ll128, tree-ll, tree-ll128 won't work if the binary
search happens to have min and max sizes in two distinct
regions of same algo-proto choice.
This change makes it continue unless the max and min sizes diff by
2x, which we assume is too granular to define two regions.
Signed-off-by: Feng Ji <fengnji@amazon.com>1 parent f155893 commit 47c2b28
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
185 | 186 | | |
186 | 187 | | |
187 | 188 | | |
188 | | - | |
| 189 | + | |
189 | 190 | | |
190 | 191 | | |
191 | 192 | | |
| |||
0 commit comments