When called on 2 ordered sketches, it seems that a_not_b is severely overestimating its result in some cases, with a_not_b(a, b) having an estimate bigger than a if b is bigger than a.
Here is a small reproduction (on the current master):
In the 3 first cases, a_not_b is called with either 1 or 2 non ordered sketches, and the result is correct.
In the last case it is called with 2 ordered sketches, and the estimate (16295.7) is higher than the estimate of a (10000).
(When calling it on unordered compact sketches, or when a > b, the results are correct)
When called on 2 ordered sketches, it seems that
a_not_b
is severely overestimating its result in some cases, witha_not_b(a, b)
having an estimate bigger thana
ifb
is bigger thana
.Here is a small reproduction (on the current master):
In the 3 first cases,
a_not_b
is called with either 1 or 2 non ordered sketches, and the result is correct. In the last case it is called with 2 ordered sketches, and the estimate (16295.7) is higher than the estimate ofa
(10000).(When calling it on unordered compact sketches, or when
a
>b
, the results are correct)