You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2021/06/05 12:58:29 UTC

[GitHub] [arrow-rs] boaz-codota commented on pull request #383: Add set_bit to BooleanBufferBuilder to allow mutating bit in index

boaz-codota commented on pull request #383:
URL: https://github.com/apache/arrow-rs/pull/383#issuecomment-855236871


   Fix the tests, could you review? @Dandandan @alamb ?
   
   Also, @alamb I noticed that in https://github.com/influxdata/influxdb_iox/blob/main/arrow_util/src/bitset.rs#L87 is differ from what is done here:
   ```rust
   // influx_iox
   data[byte_idx] |= 1 << (i & 7) 
   ```
   vs
   ```rust
   // arrow-rs
   const BIT_MASK: [u8; 8] = [1, 2, 4, 8, 16, 32, 64, 128];
   // ...
   data[i >> 3] |= BIT_MASK[i & 7];
   ```
   which I haven't tested but might have performance implications (?)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org