You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Simone Tripodi (JIRA)" <ji...@apache.org> on 2016/08/01 09:26:20 UTC

[jira] [Updated] (SLING-5924) Resource package builder threshold is too low

     [ https://issues.apache.org/jira/browse/SLING-5924?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Simone Tripodi updated SLING-5924:
----------------------------------
    Attachment: SLING-5924.2.patch

Hi there [~teofili], please have a look at the new attached patch: it switches from a {{ByteArrayOutuptStream}} to a {{ByteBuffer}}, moreover it allow users specifying the file threashold _Memory Unit_ (such as Kb, Mb, ...) and a flag to enable/disable off heap memory, useful to store large blobs in memory only.
Any feedback/suggestion/... is welcome, looking forward to read news from you! :)

> Resource package builder threshold is too low
> ---------------------------------------------
>
>                 Key: SLING-5924
>                 URL: https://issues.apache.org/jira/browse/SLING-5924
>             Project: Sling
>          Issue Type: Improvement
>          Components: Distribution
>            Reporter: Tommaso Teofili
>            Assignee: Tommaso Teofili
>             Fix For: Content Distribution 0.2.0
>
>         Attachments: SLING-5924.2.patch, SLING-5924.patch
>
>
> The _fileThreshold_ default in {{ResourceDistributionPackageBuilder}} is set to 128KB, that is generally a bit too low even for small resources (one resource with a few properties).
> I'd raise the default to something that's generally big enough to contain one resource, e.g. 1MB.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)