-
Enhancement
-
Resolution: Done
-
Critical
-
3.0.1.Final
-
None
Caused by: https://community.jboss.org/message/789835#789835
Problem:
Inside ChunkInputStream.skip(..) the data to be skipped are loaded and then skipped. Thats not really fast.
Change suggestion:
To forecast the chunk, which needs to be loaded at start or at next after the skipped bytes, its important to know how big the next chunks are.
The chunk size may be changed in the future, so the Metadata object of the BLOB must contain also a list of size of every chunk.
The serialized Metadata object format contains a field for the version, so changes of the Metadata object can be done backward compatible.
One real-world use case is a website that exposes videos stored in ModeShape. Most video players allow skipping, and that only works if the stream is skippable.