From 3b790a525c964f5b1dd4c1296c8291b7ecc3da22 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Wed, 4 Nov 2026 23:27:23 -0300 Subject: Places: skipped and capped, which nothing read, and wrapped, which only two test asserts read, go; restore and settleSeek drop the Pardes they never used; nowNs, FrameStats.nowNs's twin, goes, Tables and the tests calling FrameStats' Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge --- src/Tables.zig | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/Tables.zig') diff --git a/src/Tables.zig b/src/Tables.zig index 44918559..765975dc 100644 --- a/src/Tables.zig +++ b/src/Tables.zig @@ -521,7 +521,7 @@ fn scanFrom(t: *Tables, gpa: std.mem.Allocator, content: []const u8, at: *Resume var fence = at.fence; var prev_blank = at.prev_blank; var line = lineAt(content, at.at, at.n); - const t0 = if (budget_ns > 0) panes.Places.nowNs() else 0; + const t0 = if (budget_ns > 0) pardes.FrameStats.nowNs() else 0; var lines: usize = 0; while (line) |l| : (lines += 1) { if (l.n > stop) break; @@ -1100,7 +1100,7 @@ test "zz tables timings on a big markdown file (TABLES_TIMES=)" { const io = testing.io; const bytes = try std.Io.Dir.cwd().readFileAlloc(io, path, testing.allocator, .limited(16 << 20)); defer testing.allocator.free(bytes); - const now = panes.Places.nowNs; + const now = pardes.FrameStats.nowNs; var report: std.ArrayList(u8) = .empty; defer report.deinit(testing.allocator); { @@ -1153,11 +1153,11 @@ test "zz tables timings on a big markdown file (TABLES_TIMES=)" { _ = try p.render(frame.allocator()); const Clock = struct { fn step(pp: *Pardes, fr: *std.heap.ArenaAllocator, ev: pardes.Event) !u64 { - const t0 = panes.Places.nowNs(); + const t0 = pardes.FrameStats.nowNs(); pp.update(ev); _ = fr.reset(.retain_capacity); _ = try pp.render(fr.allocator()); - return panes.Places.nowNs() - t0; + return pardes.FrameStats.nowNs() - t0; } }; var sum: u64 = 0; -- cgit v1.3