Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stream decoder optimize #1590

Merged
merged 35 commits into from
Apr 29, 2022
Merged

Stream decoder optimize #1590

merged 35 commits into from
Apr 29, 2022

Conversation

mroccyen
Copy link
Contributor

@mroccyen mroccyen commented Mar 7, 2022

This PR has the following optimizations:

  1. StreamDecoder has a strong validation for 'Stream' type that it is not conducive to scaling, so removal can be considered.
  2. Added a default implementation of the iterator encoder, providing the user with a choice, although users can also use their own iterator encoder.

@mroccyen mroccyen requested a review from velo March 8, 2022 06:29
Copy link
Member

@velo velo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will merge as is if you are tired of the back and forward, but if not =)

core/src/main/java/feign/stream/StreamDecoder.java Outdated Show resolved Hide resolved
@mroccyen mroccyen force-pushed the StreamDecoderOptimize branch from ae36e27 to 3378e13 Compare March 21, 2022 02:59
@mroccyen mroccyen requested a review from velo March 21, 2022 03:03
Copy link
Member

@kdavisk6 kdavisk6 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mroccyen I have some maintenance related feedback.

core/src/main/java/feign/stream/StreamDecoder.java Outdated Show resolved Hide resolved
core/src/main/java/feign/stream/StreamDecoder.java Outdated Show resolved Hide resolved
@mroccyen mroccyen requested a review from kdavisk6 March 25, 2022 11:31
@kdavisk6
Copy link
Member

Thank you for updating. If you could please add a section to the README with some documentation, this PR looks ready to be merged.

Copy link
Member

@kdavisk6 kdavisk6 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add some documentation to the Readme

core/src/main/java/feign/stream/StreamDecoder.java Outdated Show resolved Hide resolved
@mroccyen mroccyen requested a review from velo March 27, 2022 14:09
@mroccyen mroccyen requested a review from kdavisk6 March 27, 2022 14:39
@mroccyen
Copy link
Contributor Author

Please add some documentation to the Readme

I've already added it.

this.iteratorDecoder = iteratorDecoder;
this.delegateDecoder = delegateDecoder != null
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this.delegateDecoder = Optional.ofNullable(delegateDecoder);

@velo velo merged commit 7230f7c into OpenFeign:master Apr 29, 2022
velo added a commit that referenced this pull request Oct 7, 2024
* Optimize StreamDecoder

* Optimize StreamDecoder

* add license header

* add license header

* Optimize StreamDecoder

* Optimize StreamDecoder

* Optimize StreamDecoder

* Optimize StreamDecoder

* add license header

* add license header

* Optimize StreamDecoder

* Optimize StreamDecoder

* Optimize StreamDecoder

* Optimize StreamDecoder

* Optimize StreamDecoder

* add license header

* add license header

* Optimize StreamDecoder

* Optimize StreamDecoder

* Optimize StreamDecoder

* Optimize StreamDecoder

* add license header

* Optimize StreamDecoder

* Optimize StreamDecoder

* Optimize StreamDecoder

* add some example

* Optimize StreamDecoder

* add a section of README for stream decoder

* Update StreamDecoder.java

Co-authored-by: Marvin Froeder <velo@users.noreply.github.com>
velo added a commit that referenced this pull request Oct 8, 2024
* Optimize StreamDecoder

* Optimize StreamDecoder

* add license header

* add license header

* Optimize StreamDecoder

* Optimize StreamDecoder

* Optimize StreamDecoder

* Optimize StreamDecoder

* add license header

* add license header

* Optimize StreamDecoder

* Optimize StreamDecoder

* Optimize StreamDecoder

* Optimize StreamDecoder

* Optimize StreamDecoder

* add license header

* add license header

* Optimize StreamDecoder

* Optimize StreamDecoder

* Optimize StreamDecoder

* Optimize StreamDecoder

* add license header

* Optimize StreamDecoder

* Optimize StreamDecoder

* Optimize StreamDecoder

* add some example

* Optimize StreamDecoder

* add a section of README for stream decoder

* Update StreamDecoder.java

Co-authored-by: Marvin Froeder <velo@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants