ring buffers working albiet extremely inefficiently