Re:Static search trees: 40x faster than binary search
by dwattttt on Wednesday January 01, 2025 @12:03AM
(#42564083)
For `&[u32]` and `&[u32; P]`, those are both references to an array of unsigned 32 but integers, however the former is to an array of any size (and carries its size at runtime), whereas the latter is to an array with an explicitly known size at compile time. It's unusual in C, I think you can express it as `int[24] *` (or possibly some other permutation, I'm away from a compiler).
Vec<u32> is pretty much like std::vector compared to them, yeah.
Vec<u32> is pretty much like std::vector compared to them, yeah.