News for hackers. Stuff that matters.
Re:A Fast, Growable Array with Stable Pointers in C by fc417fc802 on Thursday August 07, 2025 @01:42AM (#44820984)
> The indexing also seems dependent on division.

As long as the number of slots in a bucket is a power of two division reduces to right shift (I have no idea what std::deque does though). One of the advantages of not growing exponentially is that you can use a deque the way you would a ring buffer without it attempting to eat the entire address space.

There are no comments on this comment yet.