4 ms·tl;dr: the old magic ring buffer trickby quotemstr 10y agotl;dr: the old magic ring buffer trick