0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-11-15 14:32:30 +01:00

Measure time it takes to calculate state group ID

This commit is contained in:
Erik Johnston 2018-03-28 11:03:52 +01:00
parent f879127aaa
commit 01ccc9e6f2

View file

@ -483,6 +483,7 @@ class StateResolutionHandler(object):
key: e_ids.pop() for key, e_ids in state.iteritems()
}
with Measure(self.clock, "state.create_group_ids"):
# if the new state matches any of the input state groups, we can
# use that state group again. Otherwise we will generate a state_id
# which will be used as a cache key for future resolutions, but