move ringbuffer to be allocated on heap as the MAX_CAPACITY per event type has gone up to 10k
In this commit the vec backing the buffer is swapped for an array. Criterion benchmarks were added to compare the perf to make sure it has not made it worse. The vec implementation has been removed after the benchmarks done locally