You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Motivation:
Unnecessary allocations are bad!
Modifications:
- Use 'removeAll' instead of allocating a new buffer when dropping
pending reads in the 'HTTP2StreamChannel'
- Use a static empty buffer in 'DataBuffer.evacuatePendingWrites'
Result:
- Fewer allocations.
- Resolvesapple#240
- Resolvesapple#241
Motivation:
Unnecessary allocations are bad!
Modifications:
- Use 'removeAll' instead of allocating a new buffer when dropping
pending reads in the 'HTTP2StreamChannel'
- Use a static empty buffer in 'DataBuffer.evacuatePendingWrites'
Result:
- Fewer allocations.
- Resolvesapple#240
- Resolvesapple#241
Motivation:
Unnecessary allocations are bad!
Modifications:
- Use 'removeAll' instead of allocating a new buffer when dropping
pending reads in the 'HTTP2StreamChannel'
- Use a static empty buffer in 'DataBuffer.evacuatePendingWrites'
Result:
- Fewer allocations.
- Resolves#240
- Resolves#241
HTTP2StreamChannel drops the pending reads by allocating a new CircularBuffer. There's no need for that, just use
removeAll
: it's faster.The text was updated successfully, but these errors were encountered: