mirror of
https://github.com/apple/swift-nio
synced 2026-11-25 04:47:49 +00:00
Motivation: B2MD has an important fast path: - everything was consumed - no buffers collected during re-entrancy In this case we should short-circuit and move on as quickly as possible. Modifications: If everything was consumed in `decode` and no buffers were collected in re-entrancy, returning a buffer isn't actually useful, we should just drop it and not risk taking an allocation for a useless `clear`. Result: faster & fewer allocs