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

[core] Optimize toArray of all ByteIterators except RandomByteIterator #1112

Merged
merged 1 commit into from
Apr 26, 2019

Commits on Mar 20, 2018

  1. [core] Optimize toArray of all ByteIterators except RandomByteIterator

    Method nextBuf is a clever hack that outperforms Random.nextBytes
    but performs poorly for all other ByteIterator implementations
    
    This commit moves it to RandomByteIterator and adds efficient
    toArray implementations for other ByteIterator classes.
    
    Also InputStreamByteIterator.reset method that unconditionally
    throws UnsupportedOperationException is fixed
    isopov committed Mar 20, 2018
    Configuration menu
    Copy the full SHA
    0d4a7f8 View commit details
    Browse the repository at this point in the history