Richard van der Hoff fa5c2bc082 Reduce set building in get_entities_changed
This line shows up as about 5% of cpu time on a synchrotron:

    not_known_entities = set(entities) - set(self._entity_to_key)

Presumably the problem here is that _entity_to_key can be largeish, and
building a set for its keys every time this function is called is slow.

Here we rewrite the logic to avoid building so many sets.
2018-07-12 11:37:44 +01:00
..
2018-07-09 16:09:20 +10:00
2018-07-09 16:09:20 +10:00
2018-07-09 16:09:20 +10:00
2018-07-09 16:09:20 +10:00
2018-07-09 16:09:20 +10:00
2018-07-09 16:09:20 +10:00
2018-07-09 16:09:20 +10:00
2018-07-10 12:28:42 +01:00
2018-07-10 17:58:18 +01:00
2018-07-09 16:09:20 +10:00
2018-07-09 16:09:20 +10:00
2018-07-09 16:09:20 +10:00
2018-07-09 16:09:20 +10:00
2018-07-09 16:09:20 +10:00
2018-07-07 10:48:06 +10:00
2018-07-09 16:09:20 +10:00
2018-07-09 16:09:20 +10:00
2018-07-09 16:09:20 +10:00
2018-07-09 16:09:20 +10:00
2018-07-09 16:09:20 +10:00
2018-07-09 16:09:20 +10:00