mirror of
https://github.com/openai/codex.git
synced 2026-10-25 18:28:38 +00:00
Replace clone with mem::take in finalize(), return Cow from unwrap_markdown_fences for zero-copy on fence-free messages, use index-based iteration in reflow loop, add #[inline] on ~20 hot-path functions, add with_capacity hints on hot Vecs/Strings, box large ActiveFence variant, and eliminate minor allocations (into_iter, Span::from for literals, write!-based plain_text, redundant .max(1)).