[
https://issues.apache.org/jira/browse/ARROW-3891?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Uwe L. Korn resolved ARROW-3891.
--------------------------------
Resolution: Fixed
Fix Version/s: 0.12.0
Issue resolved by pull request 3039
[https://github.com/apache/arrow/pull/3039]
> [Java] Remove Long.bitCount with simple bitmap operations
> ---------------------------------------------------------
>
> Key: ARROW-3891
> URL: https://issues.apache.org/jira/browse/ARROW-3891
> Project: Apache Arrow
> Issue Type: Sub-task
> Reporter: Animesh Trivedi
> Assignee: Animesh Trivedi
> Priority: Major
> Labels: pull-request-available
> Fix For: 0.12.0
>
> Time Spent: 40m
> Remaining Estimate: 0h
>
> the `public int isSet(int index)` routine checks if the bit is set by calling
> Long.bitCount function. This is unnecessary and creates performance
> degradation. This can simply be replaced by bit shift and bitwise &
> operation.
> `return Long.bitCount(b & (1L << bitIndex));`
> to
> `return (b >> bitIndex) & 0x01;`
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)