Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-1121

Use nio.transferTo when copying large blocks of bytes

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: core/store
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      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.

        Attachments

        1. LUCENE-1121.patch
          5 kB
          Michael McCandless
        2. LUCENE-1121.patch
          8 kB
          Michael McCandless
        3. testIO.java
          3 kB
          Michael McCandless

          Activity

            People

            • Assignee:
              mikemccand Michael McCandless
              Reporter:
              mikemccand Michael McCandless
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: