lava / linear_ringbuffer

A C++ ringbuffer that always looks like a flat array
GNU Affero General Public License v3.0
81 stars 13 forks source link

A few improvements. #2

Closed max0x7ba closed 4 years ago

max0x7ba commented 4 years ago

I need a linear ring buffer using the double mapping trick and was about to write one, but googled my potential class name and found your project. Thanks for open sourcing it.

Here are a few tweaks of mine you may like to consider merging into your original project. I use your container with uint16_t size type and with the changes I can trim down the size of the container object to 16 bytes, which is important for my use case.

max0x7ba commented 4 years ago

Changed my mind.