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

Simone Tripodi updated SLING-5730:
----------------------------------
    Attachment: SLING-5730.2.patch

Hi there [~teofili]!
Please have a look at the SLING-5730.2.patch which supplies the _memory to 
file_ switch without introducing the _Guava_ dependency.
Testcase is included.

Please notice also that when creating temporary files via the 
{{java.io.File.createTempFile()}} method, there's no need to add unique 
identifiers such as {{java.lang.System.currentTimeMillis()) because the JMV 
already takes care of doing it.

Feedbacks are welcome, TIA! :)

> Avoid creating a File of a package when it's small enough to fit in memory
> --------------------------------------------------------------------------
>
>                 Key: SLING-5730
>                 URL: https://issues.apache.org/jira/browse/SLING-5730
>             Project: Sling
>          Issue Type: Improvement
>          Components: Distribution
>            Reporter: Tommaso Teofili
>            Assignee: Simone Tripodi
>         Attachments: SLING-5730.1.patch, SLING-5730.2.patch, SLING-5730.patch
>
>
> {{ResourcePackageBuilder}} creates a temporary file holding the actual 
> package stream, it'd be good to avoid that when the size of the stream is 
> small enough to quickly fit into memory.



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

Reply via email to