mirror of
https://github.com/apple/swift-nio
synced 2026-11-27 05:04:22 +00:00
Motivation: WebSocketFrameDecoder makes an allocation due to WebSocketFrame not fitting in an existential. We should reduce this overhead. Modifications: Moved data and extensionData into a cow-box and reorder fields to more efficiently pack them. Result: WebSocketFrame is now 14 bytes, down from 55.