Reduce the amount of times we call Element._update_state()
Description
These are the trivial changes to reducing the amount of times we call Element._update_state()
.
Changes proposed in this merge request:
- In
Element._fetch_done()
, we only callElement.__update_source_state()
, because the element's assorted bits, and their cache keys, cannot change as a result (strictly speaking, it would be possible if fetching wasn't already blocked when sources have not been tracked). - In
Element._schedule_tracking()
, we don't callElement._update_state()
because all changes are blocked byElement.__tracking_scheduled
.
This merge request is part of #902 (closed) but does not close it.