Make the buffer of events inline with the ring buffer avoiding the  pointer indirection. Buffer size must be known at compile time now.