Issue #2527: Count the 1BRC row loop cut by text::Pos against bytes[..].text()

Open and answer this issue on GitHub.

blocked, yaml · opened 2026-11-21 · updated 2026-11-22 · 1 comment

Part of #743 After #2523

What it is

The 1BRC study’s gap 03 (#743) asked for a row loop over a mapped file that cuts each row at text positions instead of t.bytes[k..<e].text(), which checks every row as UTF-8 again. An earlier run measured the text::Cursor.until loop (142 instructions a row against 175, 100000 rows of 13 bytes, minus a base that only builds the text); the cut by Pos itself, with D8’s unchecked slice, is not measured yet. This was #743 item 9.

To build

  1. Count with callgrind the 1BRC row loop written with find(…; from: p) and between against the same loop with t.bytes[k..<e].text(), release builds, the same output first (docs/measuring.md); figures in the commit message and in benches/brc/.

Done when

The commit message gives both instruction counts per row (cut by Pos, and bytes[..].text()), measured with callgrind on the same input; the commit carries Fixes #N for this issue, and the report gives a Found: line where the cut by Pos costs more.

Split from #743 by Claude Code

Comments

keywan-ghadami, 2026-11-22

Driver: not queued, this issue waits for #2523, which is still open (#1819). Set ready again when it is closed.


Generated by Claude Code

Back to Open Issues