Change 'subscribe' functionality so that it only notifies once with the latest value rather than notifying for each update.
Various other performance updates (thanks @vamp for pointing out the performance issues).
Merge branch 'master' into gh-pages