WillAyd commented on PR #280:
URL: https://github.com/apache/arrow-nanoarrow/pull/280#issuecomment-1683873167
Hmm very strange. I also pieced together this benchmark in C:
```c
#include <stdlib.h>
#include "nanoarrow.h"
#include "buffer_inline.h"
int main() {
int N = 1000000;
int8_t* values = malloc(N);
memset(values, 0, N);
struct ArrowBitmap bitmap;
ArrowBitmapInit(&bitmap);
ArrowBitmapReserve(&bitmap, N);
ArrowBitmapAppendInt8Unsafe(&bitmap, values, N);
for (int i = 0; i < 10000; i++) {
ArrowBitsUnpackInt8(bitmap.buffer.data, 0, N, values);
}
free(values);
}
```
which I think generally showed improvement, but not to the degree and
consistency with what I was seeing in the Python/Cython library I originally
noticed this in. Will see if I can test some more
--
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]