[ 
https://issues.apache.org/jira/browse/SPARK-39282?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17541803#comment-17541803
 ] 

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: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to