S3ObjectInputStream skip is inefficient · Issue #797 · aws/aws-sdk-java
I working on implementing S3 download framework with resume support. When using S3ObjectInputStream while downloading an object, I had to skip bytes in order to support resume of previously broken downloads. Calling skip() on S3ObjectInputStream takes forever (if the file is big) & it seems it is simply using the default skip() implementation. Here is what documentation says about default implementation:
The skip method of this class creates a byte array and then repeatedly reads into it until n bytes have been read or the end of the stream has been reached. Subclasses are encouraged to provide a more efficient implementation of this method. For instance, the implementation may depend on the ability to seek.
Read full article from S3ObjectInputStream skip is inefficient · Issue #797 · aws/aws-sdk-java
No comments:
Post a Comment