This script has an error and causes Xcode to add it's own event handlers which could use more cpu. It gives warnings of FSM not preprocessed.
Need to replace onUpdate() with OnPreprocess()
edit: (I know this thread is old, but the custom script is on the ecosystem)