Uploaded image for project: 'Jackrabbit FileVault'
  1. Jackrabbit FileVault
  2. JCRVLT-259

Support pluggable compression formats

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Packaging
    • Labels:
      None

      Description

      The new feature to suppress compression for already compressed binaries introduced in JCRVLT-163, has been implemented with Apache Sling Content Distribution in mind to get best performance while still keep bytes on the wire as small as affordable [0].

      Wouldn't it make sense for such cases to support different compression formats as well, especially thinking about snappy or lz4?

      Currently there is a pair for compressing and decompressing implementations, JarExporter and ZipArchive/ZipStreamArchive. Those are used by the PackageManagerImpl for example to open or assemble a new package. Adding support for further compression formats could be done for example by implementing a registry holding the constructors for compression and decompression implementations, where the one of choice could be requested by the ExportOptions (defaulting to jar/zip as it is now).

      [0] https://github.com/apache/sling-org-apache-sling-distribution-core/blob/master/src/main/java/org/apache/sling/distribution/serialization/impl/vlt/VltUtils.java#L190

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              diru Dirk Rudolph
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: