mirror of
https://github.com/apple/swift-nio-imap
synced 2026-11-26 04:57:51 +00:00
The hand-rolled loop (collect [Unicode.Scalar], then build a UnicodeScalarView) regrew the string per scalar and was a dominant source of parser allocations. Best-effort decoding gets the same fast path, and no longer returns "" for non-contiguous input. Renames String+ByteBuffer.swift to String+UTF8Bytes.swift; it never touched ByteBuffer.