[ 
https://issues.apache.org/jira/browse/SLING-5730?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15393448#comment-15393448
 ] 

Simone Tripodi commented on SLING-5730:
---------------------------------------

Hi there [~teofili]! :)
I'd love to contribute here and I have a couple of questions:

bq. the size of the stream is small enough to quickly fit into memory.

Do you have an idea of the minimum dimension for package streams in order to be 
dumped on FS, rather than in memory?
I was thinking about using a [direct 
ByteBuffer|http://docs.oracle.com/javase/6/docs/api/java/nio/ByteBuffer.html#allocateDirect(int)]
 for this task, would it be OK or there are side effects?

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
>
> {{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