You are right, there are many points to optimize. Big problem was, that i made some bad design decisions at the beginning, and didn't realized it until it was to late to rewrite it. Next time i know better...
I hunted bugs until some minutes before the deadline. The binaries run much better.