Avoiding the compilation of events that have already been compiled