Fang Zheng created ORC-445:
------------------------------

             Summary: [C++] Code improvements in RLEV2Util
                 Key: ORC-445
                 URL: https://issues.apache.org/jira/browse/ORC-445
             Project: ORC
          Issue Type: Improvement
          Components: C++
            Reporter: Fang Zheng


This is a follow-up of ORC-444. The following functions in RLEV2Util.hh can be 
optimized by replacing the if-else statements with direct array lookup:

  inline uint32_t getClosestFixedBits(uint32_t n);
  inline uint32_t getClosestAlignedFixedBits(uint32_t n);
  inline uint32_t encodeBitWidth(uint32_t n);
  inline uint32_t findClosestNumBits(int64_t value);




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to