[
https://issues.apache.org/jira/browse/OAK-1925?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14048816#comment-14048816
]
Jukka Zitting commented on OAK-1925:
------------------------------------
-0 Without more significant performance impact I'd be reluctant to add the
extra complexity and memory overhead. New data segments are already cached in
memory by the {{SegmentWriter}}, and in most cases access to new large binaries
isn't too performance-critical. Older content is accessed through the more
performance-optimized {{TarReader}} class.
> Use streamed io instead of RandomAccessFile in TarWriter
> --------------------------------------------------------
>
> Key: OAK-1925
> URL: https://issues.apache.org/jira/browse/OAK-1925
> Project: Jackrabbit Oak
> Issue Type: Improvement
> Components: segmentmk
> Reporter: Chetan Mehrotra
> Priority: Minor
> Fix For: 1.1
>
> Attachments: OAK-1925.patch
>
>
> TarWriter currently uses RandomAccessFile to
> * Write the tar entries
> * Read written entries
> The write however are currently sequential. It might be better to use
> streamed buffered io for the write and maintain an in memory cache of written
> tar entries to serve the reads.
--
This message was sent by Atlassian JIRA
(v6.2#6252)