RoaringBitmap / roaring-rs

A better compressed bitset in Rust

Home Page:https://docs.rs/roaring/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SIMD Harley-Seal Population Count

saik0 opened this issue · comments

commented

arXiv:1709.07821 Roaring Bitmaps: Implementation of an Optimized Software Library (Section 4.1.1)

arXiv:1611.07612 Faster Population Counts Using AVX2 Instructions

Our approach has been adopted by LLVM: it is used by its popular C compiler (clang).

Is this already done?

I am pretty sure it hasn't been implemented.

commented

Our approach has been adopted by LLVM: it is used by its popular C compiler (clang).

llvm might be doing it for us :)

commented

It does. Both for counting cardinality, and for counting while performing a set op.

https://godbolt.org/z/EKb3qvj5T