[
https://issues.apache.org/jira/browse/SPARK-39282?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17541804#comment-17541804
]
Apache Spark commented on SPARK-39282:
--------------------------------------
User 'zhixingheyi-tian' has created a pull request for this issue:
https://github.com/apache/spark/pull/36659
> 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
> Priority: Major
>
> [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: [email protected]
For additional commands, e-mail: [email protected]