[ 
https://issues.apache.org/jira/browse/LUCENE-2471?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12966358#action_12966358
 ] 

Earwin Burrfoot commented on LUCENE-2471:
-----------------------------------------

Hmmm. Are we going to do this?

Optimized bulk copies IndexInput -> IndexOutput for merges.

I currently see II.copyBytes(IndexOutput out, long numBytes) method in trunk,
but it's a little bit of a mess (II.copyBytes calls IO.copyBytes, strange 
overrides doing the same thing in various ways),
no optimizations for FSDirectory (or at least NIOFSdirectory) case,
no offset parameter?
not used when bulk-merging? (well, DataOutput.copyBytes _is_ used, but there's 
a single inefficient version of it)

> Supporting bulk copies in Directory
> -----------------------------------
>
>                 Key: LUCENE-2471
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2471
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Store
>            Reporter: Earwin Burrfoot
>             Fix For: 3.1, 4.0
>
>
> A method can be added to IndexOutput that accepts IndexInput, and writes 
> bytes using it as a source.
> This should be used for bulk-merge cases (offhand - norms, docstores?). Some 
> Directories can then override default impl and skip intermediate buffers 
> (NIO, MMap, RAM?).

-- 
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: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to