angular/angular.js — Issue #697: Optimization: "pure" filters
Author: kseamon
Created: 2011-12-19 23:33:24+00:00
State: open

Currently (as of 10.6), filters in expressions in a template are called on every $watch iteration.

It would speed things up if we could declare a filter as pure (ie, for a given input the same output will always be produced) so that these calls could be removed from the $watch (just watch the input instead).