[
https://issues.apache.org/jira/browse/SLING-5730?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15396537#comment-15396537
]
Simone Tripodi edited comment on SLING-5730 at 7/27/16 10:35 PM:
-----------------------------------------------------------------
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! :)
was (Author: simone.tripodi):
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)