forked from MirrorHub/synapse
Use efficient .intersection
This commit is contained in:
parent
850238b4ef
commit
b2aa05a8d6
1 changed files with 1 additions and 4 deletions
|
@ -80,10 +80,7 @@ class StreamChangeCache(object):
|
|||
)
|
||||
}
|
||||
|
||||
result = {
|
||||
e for e in entities
|
||||
if e in changed_entities
|
||||
}
|
||||
result = changed_entities.intersection(entities)
|
||||
|
||||
self.metrics.inc_hits()
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue