Add some scripts to generate some profiling data

And the profiles, for future reference.
Replace "cute"/convenient code with normal code

Improve worst-case performance by ~40-60% by adding boring code.

In the future, this will be dog-fooding generated code anyway (hopefully).
Text files containing before/after times of last commit