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-09 16:09:20 +10:00
2017-09-26 19:21:41 +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-01-19 18:23:45 +00:00
2018-07-09 16:09:20 +10:00
2018-04-28 13:57:00 +02:00