Commit Graph
1 Commits
Author SHA1 Message Date
Frog Rocky f4cdedf40a perf(conceal): optimize record and prelude hot paths
Replace hot-path bytes.NewBuffer usage with slice-backed readers and
writers, and build FlexBuffer-backed read/write contexts by value.

Remove defer from the targeted per-message and per-batch write paths,
return pooled buffers explicitly after downstream writes complete, and
keep TCP/UDP prelude behavior unchanged.

Add focused regression tests for stream, UDP, and batch masquerade and
prelude writes, and fix write-side bookkeeping to emit the actual
encoded bytes.
2026-04-04 01:08:08 +02:00