How difficult is it to optimize this simulator?

I get a better sim than when i first did by a long way.