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

Performance Optimization of cc.Scheduler.update