paleolimbot commented on PR #280:
URL: https://github.com/apache/arrow-nanoarrow/pull/280#issuecomment-1689124104
Yes, I'm on M1.
If I change the unpacking to a macro, I get 3x faster unpacking (and no
difference between shift/no shift):
```c
#define ARROW_BITS_UNPACK1(word, out) \
do { \
out[0] = (word >> 0) & 1; \
out[1] = (word >> 1) & 1; \
out[2] = (word >> 2) & 1; \
out[3] = (word >> 3) & 1; \
out[4] = (word >> 4) & 1; \
out[5] = (word >> 5) & 1; \
out[6] = (word >> 6) & 1; \
out[7] = (word >> 7) & 1; \
} while(0)
```
--
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]