[ https://issues.apache.org/jira/browse/SLING-5991?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15753912#comment-15753912 ]
Tommaso Teofili commented on SLING-5991: ---------------------------------------- functionally speaking I've tested your patch on a performance benchmark and everything works. One thing I've noticed is the default package size (set to 1MB) in {{ResourcePackageBuilder}}, usually at first we don't know the package size before the serializer is called (hence it's initially set to -1 IIRC). > [SCD] Evaluate avoiding to buffer the whole packages before streaming > --------------------------------------------------------------------- > > Key: SLING-5991 > URL: https://issues.apache.org/jira/browse/SLING-5991 > Project: Sling > Issue Type: Improvement > Components: Distribution > Affects Versions: Content Distribution 0.2.0 > Reporter: Timothee Maret > Assignee: Timothee Maret > Fix For: Content Distribution 0.2.0 > > Attachments: SLING-5991.patch > > > As described in SLING-5990, It seems streaming only starts when the whole > binary is completely buffered (in memory and/or file). The buffering time > implies a latency which which could be avoided by streaming directly. -- This message was sent by Atlassian JIRA (v6.3.4#6332)