Issue #5096: Performance Optimization of cc.Scheduler.update