Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Flash Next: facts' priced-lone flag renamed from lone, which the me…
…rge left shadowing the lone driver (Backend.lone)
  • Loading branch information
sethforprivacy
sethforprivacy committed Oct 14, 2026
commit b1a4204b9210d9b6704c32992bcae75edb7204e4
4 changes: 2 additions & 2 deletions zig/src/families/flashnext/backend.zig
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ pub const Backend = struct {
const c: ?*const batch_costs.Costs = if (b.costs) |*x| x else null;
// shared rounds priced from the timed forwards, each draft past a stream's first at a chained step's time; a
// lone stream's depth from the same (FZ_LONE_UNPRICED=1: the heuristic)
const lone = c != null and std.c.getenv("FZ_LONE_UNPRICED") == null;
return .{ .exact_width = fz.MAXR, .first_copy_rows = 4, .mtp = true, .speculate = true, .speculate_early = false, .drafts = 8, .streams_exact = true, .hidden_rows = true, .batch_rows = fz.MAXR, .max_streams = @intCast(b.sessions.len), .draft_streams = !b.serial_drafts, .shared_costs = if (c) |x| &x.shared else &.{}, .draft_step_ms = if (c != null and !b.serial_drafts) c.?.step_ms else 0, .window_costs = if (lone) &c.?.shared else &.{}, .mtp_step_ms = if (lone) c.?.step_ms else 0 };
const lone_priced = c != null and std.c.getenv("FZ_LONE_UNPRICED") == null; // not `lone`: that names the lone driver
return .{ .exact_width = fz.MAXR, .first_copy_rows = 4, .mtp = true, .speculate = true, .speculate_early = false, .drafts = 8, .streams_exact = true, .hidden_rows = true, .batch_rows = fz.MAXR, .max_streams = @intCast(b.sessions.len), .draft_streams = !b.serial_drafts, .shared_costs = if (c) |x| &x.shared else &.{}, .draft_step_ms = if (c != null and !b.serial_drafts) c.?.step_ms else 0, .window_costs = if (lone_priced) &c.?.shared else &.{}, .mtp_step_ms = if (lone_priced) c.?.step_ms else 0 };
}

fn self(ptr: *anyopaque) *Backend {
Expand Down
Loading