Uploaded image for project: 'ORC'
  1. ORC
  2. ORC-976

Optimize compute zigZagLiterals

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.7.0
    • 1.7.0
    • Java
    • None

    Description

        private void computeZigZagLiterals() {
          // populate zigzag encoded literals
          long zzEncVal = 0;
          for (int i = 0; i < numLiterals; i++) {
            if (signed) {
              zzEncVal = utils.zigzagEncode(literals[i]);
            } else {
              zzEncVal = literals[i];
            }
            zigzagLiterals[i] = zzEncVal;
          }
        }
      

      Avoid conditional judgments in loops.
      The unsigned case can use literals instead of zigzagLiterals. The number of copies is proportional to the amount of user writes, which optimizes write performance.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Guiyankuang Yiqun Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: