wgtmac commented on code in PR #55709:
URL: https://github.com/apache/arrow/pull/55709#discussion_r4662367015


##########
cpp/src/arrow/util/alp/alp_compression.cc:
##########
@@ -89,22 +89,36 @@ class AlpInlines {
     return FastRound(n);
   }
 
-  // Encodes one value using the exponent/factor pair.
-  static EncodedSigned EncodeValue(const T value,
-                                   const AlpExponentAndFactor 
exponent_and_factor) {
-    const T tmp_encoded_value = value *
-                                
Constants::GetExponent(exponent_and_factor.exponent) *
-                                
Constants::GetFactor(exponent_and_factor.factor);
+  // The two decimal multipliers applied by EncodeValue() or DecodeValue(),
+  // resolved once per vector from the power-of-ten tables.
+  struct Multipliers {

Review Comment:
   I've done a similar thing in https://github.com/apache/arrow/pull/55449 :)



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to