There are profiler programs that will show you where you code spends time when executing.
You could run some of them to see if there is any place you could optimize the code, like an overuse of...