Comment on I've been writing ring buffers wrong all these years (2016)parentComments−mbel8moIn terms of CPU? The other way around.That depends on your architecture and access pattern. In case of sequential access, packed bools may perform better due to arithmetic being usually way cheaper than memory operations.
Comments
That depends on your architecture and access pattern. In case of sequential access, packed bools may perform better due to arithmetic being usually way cheaper than memory operations.