Skip to content

Commit

Permalink
Add generated changelog entries
Browse files Browse the repository at this point in the history
  • Loading branch information
svc-changelog committed Jul 28, 2023
1 parent 24baa24 commit a12ed63
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions changelog/@unreleased/pr-1983.v2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
type: improvement
improvement:
description: |-
BinaryRequestBody and ContentBody use InputStream.transferToOutputStream
Allow for optimization when underlying input stream (such as `ByteArrayInputStream`, `ChannelInputStream`) overrides `transferTo(OutputStream)` to avoid extra array allocations and copy larger chunks at a time (e.g. allowing 16KiB chunks via `ApacheHttpClientBlockingChannel.ModulatingOutputStream` from #1790).
When running on JDK 21+, this also enables 16KiB byte chunk copies via `InputStream.transferTo(OutputStream)` per JDK-8299336, where as on JDK < 21 and when using Guava `ByteStreams.copy` 8KiB byte chunk copies are used.
References:
* https://github.com/palantir/hadoop-crypto/pull/586
* https://bugs.openjdk.org/browse/JDK-8299336
* https://bugs.openjdk.org/browse/JDK-8067661
* https://bugs.openjdk.org/browse/JDK-8265891
* https://bugs.openjdk.org/browse/JDK-8273038
* https://bugs.openjdk.org/browse/JDK-8279283
* https://bugs.openjdk.org/browse/JDK-8296431
links:
- https://github.com/palantir/dialogue/pull/1983

0 comments on commit a12ed63

Please sign in to comment.