WillAyd commented on PR #280:
URL: https://github.com/apache/arrow-nanoarrow/pull/280#issuecomment-1683999750

   For reference here is a "shiftless" packing implementation too, though I 
haven't seen as much speed up using this:
   
   ```c
   static inline void _ArrowBitmapPackInt8(const int8_t* values, uint8_t* out) {
     *out = (values[0]
             | ((values[1] + 0x1) & 0x2)
             | ((values[2] + 0x3) & 0x4)
             | ((values[3] + 0x7) & 0x8)
             | ((values[4] + 0xf) & 0x10)
             | ((values[5] + 0x1f) & 0x20)
             | ((values[6] + 0x3f) & 0x40)
             | ((values[7] + 0x7f) & 0x80)
             );
   }
   ```
   
   I am still testing these downstream so no rush to merge this - let me see if 
anything becomes clearer as I work through this in pandas and will report back


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to