This page gives a few hints at writing KRL code that executes faster. Not all of them may be esthetically pleasing and thus you may chose to ignore them, sacrificing speed for code readability.