Open and answer this issue on GitHub.
ready, queued · opened 2026-11-28 · updated 2026-11-29 · 0 comments
Part of #2834 After #2853 After #2852
ADR-stream-buffers-v1 D6 and D8 for yaml (owner, 2026-11-28, #2834): a scalar longer than a buffer is handed over in parts (ScalarStart, ScalarPart, ScalarEnd), each a view of one buffer, emitted only where the parse cannot go back; an implicit key is at most 1024 characters (YAML 1.2 §7.4.2), which bounds the point after which a part may be emitted and the token moved to the next buffer. The yaml-test-suite’s =VAL line joins the parts in the test harness only.
packages/yaml offers its events entry over an io::Stream (#2853), and its Event gains the three part events; over a String or Bytes a scalar stays one event. Test: a package test reading a 5 MB scalar from a stream in parts, and the suite’s cases through the harness that joins parts.valgrind --tool=dhat max live bytes, or the task block’s figure) equal to the pool; the figure in the commit message.Both items pass, the suite’s pass list is unchanged; the last commit carries Fixes #N.
packages/yaml/src, its tests and benches/yaml. A comparison of a text in parts with a literal (ADR-stream-buffers-v1 section 6) is proposed here if needed, decided by the supervisor.
Facts: Packages, Grammar