mirror of
https://github.com/apple/swift-nio
synced 2026-11-23 04:34:23 +00:00
Motivation: Due to https://bugs.swift.org/browse/SR-14516 , we sometimes get allocating (!?) `subscript.read` accessors in the CircularBuffer.first depending on the `Element` type... Modifications: Implement `CircularBuffer.first` instead of inheriting it from Collection. Result: Fewer allocs in some cases.