You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Optimizer cost model: Subtract cost assumes T = W #765
cost_model::query_cost prices Subtract as O(1) (merge + subtract + query). That holds only when the repeat interval T equals the window W (design doc open item 6). When T > W, each query must fold in ⌊T/W⌋ newly completed windows and subtract as many evicted ones, so cost scales with T/W.
Once items keep their own T (instead of the gcd), T > W becomes common and Subtract is systematically underpriced.
Change
Price Subtract as a function of T/W, or restrict Subtract candidates to T = W.
Activity
milindsrivastava1997 commentedon Oct 27, 2026
Superseded by the rqe-optimizer MILP path (#790, ProjectASAP/sketch-bench#129, #794); the greedy optimizer was removed in #807. The cost_model this refers to is gone; Subtract is out of scope in rqe-optimizer (ProjectASAP/sketch-bench#143).