mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-10-01 08:25:44 -04:00
Use efficient .intersection
This commit is contained in:
parent
850238b4ef
commit
b2aa05a8d6
@ -80,10 +80,7 @@ class StreamChangeCache(object):
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
result = {
|
result = changed_entities.intersection(entities)
|
||||||
e for e in entities
|
|
||||||
if e in changed_entities
|
|
||||||
}
|
|
||||||
|
|
||||||
self.metrics.inc_hits()
|
self.metrics.inc_hits()
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user