You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Micah Kornfield (Jira)" <ji...@apache.org> on 2019/11/22 05:46:00 UTC
[jira] [Resolved] (ARROW-7216) [Java] Improve the performance of
setting/clearing individual bits
[ https://issues.apache.org/jira/browse/ARROW-7216?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Micah Kornfield resolved ARROW-7216.
------------------------------------
Fix Version/s: 1.0.0
Resolution: Fixed
Issue resolved by pull request 5872
[https://github.com/apache/arrow/pull/5872]
> [Java] Improve the performance of setting/clearing individual bits
> ------------------------------------------------------------------
>
> Key: ARROW-7216
> URL: https://issues.apache.org/jira/browse/ARROW-7216
> Project: Apache Arrow
> Issue Type: Improvement
> Components: Java
> Reporter: Liya Fan
> Assignee: Liya Fan
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.0.0
>
> Time Spent: 2h 50m
> Remaining Estimate: 0h
>
> Setting/clearing individual bits are key operations for Arrow. In this issue, we improve the performance these operations by:
> 1. replacing arithmetic operations with bit-wise operations
> 2. remove unnecessary casts between int/byte
> 3. provide new API to remove the if branch
> Benchmark results show that for clearing a bit, the performance improve by 11%, and for general set/clear operation, the performance improve by 4.7%:
> before:
> BitVectorHelperBenchmarks.setValidityBitBenchmark avgt 5 4.524 ± 0.015 us/op
> after:
> BitVectorHelperBenchmarks.setValidityBitBenchmark avgt 5 4.313 ± 0.011 us/op
> BitVectorHelperBenchmarks.setValidityBitToZeroBenchmark avgt 5 4.020 ± 0.016 us/op
--
This message was sent by Atlassian Jira
(v8.3.4#803005)