Reduce cost of eventlogging
When characterising the cost of eventlogging for #18948 (closed) I noticed a few bits of low-hanging fruit in this area (see $1817). Specifically:
- Move the computation of the event table to compile-time
- Make eventlog initialization path harder to misuse