orc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fang Zheng (JIRA)" <j...@apache.org>
Subject [jira] [Created] (ORC-445) [C++] Code improvements in RLEV2Util
Date Tue, 04 Dec 2018 07:18:00 GMT
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)

Mime
View raw message