Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-11462

Reduce memory requirements by not allocating a 256 MiB buffer

    XMLWordPrintableJSON

Details

    Description

      The Feature Launcher allocated a 256 MiB array unconditionally, see [1]. It is only used when feature model archives are read in.

      Its usefulness is questionable and we should fall back to using java.nio.file.Files#copy instead.

      [1]: https://github.com/apache/sling-org-apache-sling-feature-launcher/blob/36b7fe229780b06f81db0a97f2e8e86726a3158c/src/main/java/org/apache/sling/feature/launcher/impl/FeatureProcessor.java#L111

      Attachments

        Activity

          People

            rombert Robert Munteanu
            rombert Robert Munteanu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: