-
-
Notifications
You must be signed in to change notification settings - Fork 15.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Lazily allocate ChunkedWriteHandler#queue (#13711)
Motivation: When building an HTTP client, a `ChunkedWriteHandler` might be added to the pipeline just in case a `ChunkedInput` might be written, but that might never happen. In this case, we don't need the extra queue allocation and ChunkedWriteHandler should just behave as a pass-through. Modifications: * lazily initialize the queue * bypass work when the queue is empty Result: Less allocations
- Loading branch information
Showing
1 changed file
with
37 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters