lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Earwin Burrfoot (JIRA)" <>
Subject [jira] Commented: (LUCENE-2471) Supporting bulk copies in Directory
Date Fri, 03 Dec 2010 00:04:10 GMT


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:
>             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:
For additional commands, e-mail:

View raw message