mirror of
https://github.com/apple/swift-nio-http2
synced 2026-11-24 04:38:00 +00:00
Motivation: We have a slow path in compareCaseInsensitiveASCIIBytes. On the server this path will never be hit as to hit it requires having a non-contiguous String, so we really really want the compiler to use all its inlining smarts on the fast path instead. Currently it does, but as Sequence.elementsEqual is inlinable we need to be sure that doesn't change. Modifications: Force the slow path not to be inlined. Result: Guarantees about good inlining.