Files
scriptc/packages/runtime
Chris Tate 85fdf4ce74 Trim the per-chunk work of compiled object-mode stream callbacks
- A typed write or transform callback whose encoding parameter is a
  pointer union with an undefined arm receives the null pointer directly
  when an object-mode write passed no encoding, instead of converting the
  encoding value through a dyn box
  (scr_stream_chunk_encoding_undefined).
- The stream completion callbacks carry SCR_CLOSURE_KIND_RECEIVER_FREE:
  their thunks never read `this`, so compiled callers skip the receiver
  bracket.
- The completion thunks borrow the stream from the closure's box instead
  of retaining and releasing it on every call; the closure, alive for the
  call, holds the box.
- settle_next, entry_convert and clear_buffer_each test their early-out
  conditions in inline wrappers before calling the full functions.

A corpus program covers the encoding argument in object mode, byte mode
and transforms.
2026-10-29 00:40:53 -05:00
..
2026-07-22 18:08:04 -05:00
2026-10-25 11:26:13 -05:00