Skip to content
Snippets Groups Projects
Commit 8b9bb8fb authored by Ivan Sopov's avatar Ivan Sopov Committed by Sean Busbey
Browse files

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

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
parent 29f254df
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment