From 8595f4d2dabcaf0e2345239e44474c376e799fff Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Wed, 4 Nov 2026 22:53:33 -0300 Subject: Places: the zz stress analysis cost test goes: it read a file in a workspace that no longer exists (pardes-s-converge), so it could never run Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge --- src/Places.zig | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/src/Places.zig b/src/Places.zig index a60a0d65..30c14b46 100644 --- a/src/Places.zig +++ b/src/Places.zig @@ -883,31 +883,6 @@ test "places: a big file costs a keystroke its view, the ticks find the rest, an std.debug.print("places: first key {d} us, {d} ticks, an edit {d} us (the text's own splice {d} us)\n", .{ first_ns / 1000, ticks, edit_ns / 1000, text_ns / 1000 }); } -test "zz stress analysis cost" { - const path = "/home/goblin/00-projects/0x4200.cafe/pardes-s-converge/.scratch/stress/src/layout.zig"; - if (std.c.getenv("PLACES_TIMES") == null) return error.SkipZigTest; - const io = std.testing.io; - const bytes = try std.Io.Dir.cwd().readFileAlloc(io, path, std.testing.allocator, .limited(4 << 20)); - defer std.testing.allocator.free(bytes); - const syntax = @import("syntax.zig"); - syntax.start(std.testing.allocator); - defer syntax.stop(); - const tp = nowNs(); - const tree = syntax.parseTree(path, bytes); - const tq = nowNs(); - if (tree) |t| syntax.freeTree(t); - std.debug.print("parse alone {d} us\n", .{(tq - tp) / 1000}); - const t0 = nowNs(); - const d = try syntax.contextDeclarations(std.testing.allocator, path, bytes); - const t1 = nowNs(); - std.testing.allocator.free(d); - const a = try syntax.analyzeSource(std.testing.allocator, path, bytes, true, true); - const t2 = nowNs(); - std.testing.allocator.free(a.declarations); - std.testing.allocator.free(a.colors); - std.debug.print("decls {d} us ({d}), analysis with colours {d} us\n", .{ (t1 - t0) / 1000, d.len, (t2 - t1) / 1000 }); -} - test "a lowered copy's pieces not searched yet are the same in every process: a digest and a dump take them" { // Two sessions searching one text, each heap handing out other bytes in // what is not written yet (rollback.Epoch.fill): their places agree. -- cgit v1.3