summaryrefslogtreecommitdiff
path: root/test/pdf_sections_bench.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-04 23:55:35 -0300
committerGabriel Schneider <[email protected]>2026-11-05 01:02:08 -0300
commitaac802c58937053a200b0392843195b128a21172 (patch)
tree67ea31d4f5be6eb5b8ef8ea9ef301e3874b1cebd /test/pdf_sections_bench.zig
parent7fb385cb7882f79bd448250b176f2d3a81de64f6 (diff)
downloadpardes-aac802c58937053a200b0392843195b128a21172.tar.gz
pardes-aac802c58937053a200b0392843195b128a21172.zip
pdf: every by-value copy of a pane's PDF state (about 39 KB, its 256 raster slots) taken to read a field or two is a pointer capture, in panes, edit, mouse, tagline, look, exec, the core, 9P ctl, fs, draw, macos and the sections bench; the hot one is pdf_view.moving, which Pardes.continuous asks on every pass of the shell loop and which copied every PDF pane's state each time
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'test/pdf_sections_bench.zig')
-rw-r--r--test/pdf_sections_bench.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/pdf_sections_bench.zig b/test/pdf_sections_bench.zig
index 47b74018..2796910c 100644
--- a/test/pdf_sections_bench.zig
+++ b/test/pdf_sections_bench.zig
@@ -336,7 +336,7 @@ fn sectionsOutputIdentity(core: *pardes.Pardes) Identity {
fn stepIdentity(core: *pardes.Pardes) Identity {
var identity = sectionsOutputIdentity(core);
const owner = core.panes[0].?;
- const view = owner.pdf.?;
+ const view = &owner.pdf.?;
identity.checksum = mix(identity.checksum, view.page);
identity.checksum = mix(identity.checksum, @as(u64, @bitCast(view.document_scroll_y)));
identity.checksum = mix(identity.checksum, owner.search_row orelse std.math.maxInt(usize));