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

Use nio.transferTo when copying large blocks of bytes

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • None
    • None
    • core/store
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: