Save on some empty loop iterations
Add some timing info for frames that are too slow
Add some more type info to help the optimizer
Avoid most memory leaks