angular/angular.js — pull request #5272 by kseamon (2013-12-04 19:12:22+00:00)
Title: chore($scope): Short-circuit after dirty-checking last dirty watcher

chore($scope): Short-circuit after dirty-checking last dirty watcher

Stop dirty-checking during $digest after the last dirty watcher has been re-checked.
This prevents unneeded re-checking of the remaining watchers (They were already checked in the previous iteration), bringing a substantial performance improvement to the average case run time of $digest.