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

Perf test core implement InputStream.available() #27907

Merged
merged 1 commit into from
Mar 28, 2022

Conversation

kasobol-msft
Copy link
Contributor

The InputStream.available() is used to estimate bytes available for read and JDK docs prescribe implementing that method in subclasses. Some implementations (like Netty) rely on this method to efficiently read bytes from stream. Leaving this unimplemented may skew perf results as it seems that real InputStream subclasses found in nature usually implement this method.

@joshfree joshfree added pillar-performance The issue is related to performance, one of our core engineering pillars. test-enhancement labels Mar 28, 2022
@kasobol-msft kasobol-msft merged commit 8218284 into Azure:main Mar 28, 2022
@kasobol-msft kasobol-msft deleted the add-available branch March 28, 2022 21:35
kasobol-msft added a commit that referenced this pull request Mar 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pillar-performance The issue is related to performance, one of our core engineering pillars. test-enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants