Uploaded image for project: 'Pig'
  1. Pig
  2. PIG-1696

Performance: Use System.arraycopy() instead of manually copying the bytes while reading the data

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.9.0
    • None
    • None

    Description

      System.arraycopy() is said to be faster as compared to iterating over bytes and copying them over as it is implemented natively in JVM. Since every single byte read through PigStorage() will go through this code-path, this will have a performance impact.

      Attachments

        1. dba_syscp.patch
          2 kB
          Ashutosh Chauhan

        Activity

          People

            ashutoshc Ashutosh Chauhan
            ashutoshc Ashutosh Chauhan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: