[
https://issues.apache.org/jira/browse/LUCENE-1121?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12561982#action_12561982
]
Michael McCandless commented on LUCENE-1121:
--------------------------------------------
OK I ran Sun JDK 1.6.0_04 on Linux:
Linux 2.6.22, single SATA drive, ext3:
create 500 MB file... 13088 msec
transferTo... 12796 msec
create 500 MB file... 10727 msec
buffer... 12291 msec
SLOWER 4.109%
Linux 2.6.22, on 6-drive RAID 5 array, reiserfs:
create 500 MB file... 11135 msec
transferTo... 11068 msec
create 500 MB file... 8599 msec
buffer... 10708 msec
SLOWER 3.362%
> Use nio.transferTo when copying large blocks of bytes
> -----------------------------------------------------
>
> Key: LUCENE-1121
> URL: https://issues.apache.org/jira/browse/LUCENE-1121
> Project: Lucene - Java
> Issue Type: Improvement
> Components: Store
> Reporter: Michael McCandless
> Assignee: Michael McCandless
> Priority: Minor
> Attachments: LUCENE-1121.patch, LUCENE-1121.patch, testIO.java
>
>
> When building a CFS file, and also when merging stored fields (and
> term vectors, with LUCENE-1120), we copy large blocks of bytes at
> once.
> We currently do this with an intermediate buffer.
> But, nio.transferTo should be somewhat faster on OS's that offer low
> level IO APIs for moving blocks of bytes between files.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]