Hi,
For Sling Content Distribution we are using VLT (by default) as a
serialisation. Currently, on the SCD receiving side, the VLT packages must
be written in a file to disk before being passed to the PackageManager API
and ultimately exported to the repository.
I am thinking that if the PackageManager was able to export directly from
an InputStream, we may speed up the SCD import by skipping the
write-to-temp-file operation.
Maybe the PackageManger could be extended with the following signature in
order to allow extracting from InputStream:
void PackageManager.extract(session, importOptions, InputStream);
wdyt ?
Regards,
Timothee
[0]
https://github.com/apache/sling/blob/trunk/contrib/extensions/distribution/core/src/main/java/org/apache/sling/distribution/serialization/impl/vlt/FileVaultContentSerializer.java#L108-L147