You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sean R. Owen (Jira)" <ji...@apache.org> on 2022/05/28 19:18:00 UTC

[jira] [Updated] (SPARK-39282) Replace If-Else branch with bitwise operators in roundNumberOfBytesToNearestWord

     [ https://issues.apache.org/jira/browse/SPARK-39282?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sean R. Owen updated SPARK-39282:
---------------------------------
    Priority: Trivial  (was: Major)

> 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
>            Assignee: xiangxiang Shen
>            Priority: Trivial
>             Fix For: 3.4.0
>
>
> [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-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org