xiangxiang Shen created SPARK-39282: ---------------------------------------
Summary: Replace If-Else branch with bitwise operators in roundNumberOfBytesToNearestWord Key: SPARK-39282 URL: https://issues.apache.org/jira/browse/SPARK-39282 Project: Spark Issue Type: Improvement Components: SQL Affects Versions: 3.2.1 Reporter: xiangxiang Shen [https://github.com/apache/spark/blob/a6dd6076d708713d11585bf7f3401d522ea48822/common/unsafe/src/main/java/org/apache/spark/unsafe/array/ByteArrayMethods.java#L40-L47] Here,can use bitwise operators to avoid If-Else branch and improve computation performance. -- This message was sent by Atlassian Jira (v8.20.7#820007) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org