mirror of
https://github.com/apple/swift-nio
synced 2026-11-24 04:37:54 +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.
15 lines
638 B
Markdown
15 lines
638 B
Markdown
# Workarounds
|
|
|
|
The following list of PRs and commits were applied in order to work around bugs
|
|
or cases where the Swift compiler was unable to sufficiently optimize the code:
|
|
|
|
- https://github.com/apple/swift-nio/pull/1374
|
|
- https://github.com/apple/swift-nio-ssl/pull/176
|
|
- https://github.com/apple/swift-nio/pull/1325
|
|
- https://github.com/apple/swift-nio/pull/1299
|
|
- https://github.com/apple/swift-nio/pull/1252
|
|
- https://github.com/apple/swift-nio/pull/494
|
|
- https://github.com/apple/swift-nio/pull/420
|
|
- https://github.com/apple/swift-nio/commit/abc963cfe1e1d4856c41421c9d53ea778102e9e8
|
|
- https://github.com/apple/swift-nio/pull/1814
|