mirror of
https://github.com/apple/swift-nio-http2
synced 2026-11-24 04:38:00 +00:00
Motivation: A while ago we shimmed out the String unsafeUninitializedCapacity initializer because while it was on the road to being implemented, it hadn't actually been implemented. Now it has! On Apple platforms, the initializer is guarded behind an availability guard. We need to add that guard here. This means we need to keep hold of the backport for a good long time, until we raise our minimum Apple platform support to a new enough version. Happily, Linux on 5.3 should just see a net win here. Modifications: - Updated to enable us to use the proper initializer. Result: Fewer allocations when screwing around with HPACK.