Issue #1877: no memchr-speed byte search on a mutable Vec[u8]: `let mut data: Vec[u8] =…

Open and answer this issue on GitHub.

decision, bugs · opened 2026-11-16 · updated 2026-11-16 · 0 comments

Filed by the driver from the Found: of the run of issue-1619 (#1619) (owner, 2026-11-06).

Found

no memchr-speed byte search on a mutable Vec[u8]: let mut data: Vec[u8] = [65, 62, 66] then fn next_header(b: Bytes, from: i64) -> i64 { return b.find('>' as u8; from: from) ?? b.len() } called as next_header(data, 0) draws NK1102 “next_header expects b to be Bytes, but you’re passing Vec[u8]”, and data.find(...) draws NK1171 “Vec has no method called find”; Part I 2.6 gives find and ByteSet only to Bytes, which is read-only, so an in-place program (benches/game/reverse-complement/speed.nika) scans for “>” a byte at a time, 5 of its 10.6 instructions a letter against memchr’s under 0.1; no decision yet whether a Vec[u8] lends as Bytes or gets find

To build

Done when

The probe or check gives the expected output the first item names from its ADR or Part I-III section, and a tests/compiler/tests/ test (or the named check) that failed on the unfixed tree is green; or the probe already passes on develop and a test pins it, naming the commit that fixed it; or the issue is closed as by design, naming the function or ADR.


Generated by Claude Code

Back to Open Issues