-
Notifications
You must be signed in to change notification settings - Fork 24.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify Compressible Stream Handling (#74717)
Two things that can be simplified here: Instantiating a CompressibleBytesOutputStream when not doing any compression just needlessly wastes a few objects and adds indirection. When doing compression it does not really simplify the code by much if at all. => removing it to save some cycles on the IO threads The fact that the compressible stream closes the stream that it wraps is never used productively and we had to hack around it by wrapping the stream to disable close => changed behavior here to save some more wrapping and complication. Originally authored by @original-brownbear
- Loading branch information
1 parent
09043da
commit 540cc4d
Showing
3 changed files
with
39 additions
and
239 deletions.
There are no files selected for viewing
95 changes: 0 additions & 95 deletions
95
server/src/main/java/org/elasticsearch/transport/CompressibleBytesOutputStream.java
This file was deleted.
Oops, something went wrong.
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
114 changes: 0 additions & 114 deletions
114
server/src/test/java/org/elasticsearch/transport/CompressibleBytesOutputStreamTests.java
This file was deleted.
Oops, something went wrong.