forked-synapse/synapse
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
..
api run isort 2018-07-09 16:09:20 +10:00
app run isort 2018-07-09 16:09:20 +10:00
appservice run isort 2018-07-09 16:09:20 +10:00
config run isort 2018-07-09 16:09:20 +10:00
crypto run isort 2018-07-09 16:09:20 +10:00
events run isort 2018-07-09 16:09:20 +10:00
federation run isort 2018-07-09 16:09:20 +10:00
groups another typo 2018-07-10 12:28:42 +01:00
handlers s/becuase/because/g 2018-07-10 17:58:18 +01:00
http Refactor logcontext resource usage tracking (#3501) 2018-07-10 13:56:07 +01:00
metrics run isort 2018-07-09 16:09:20 +10:00
module_api Delete devices in various logout situations 2017-11-29 16:44:35 +00:00
push run isort 2018-07-09 16:09:20 +10:00
replication Use stream cache in get_linearized_receipts_for_room 2018-07-10 17:22:42 +01:00
rest run isort 2018-07-09 16:09:20 +10:00
server_notices run isort 2018-07-09 16:09:20 +10:00
static/client
storage Merge pull request #3505 from matrix-org/erikj/receipts_cahce 2018-07-12 09:46:29 +01:00
streams run isort 2018-07-09 16:09:20 +10:00
util Reduce set building in get_entities_changed 2018-07-12 11:37:44 +01:00
__init__.py version 2018-07-07 10:48:06 +10:00
event_auth.py run isort 2018-07-09 16:09:20 +10:00
notifier.py run isort 2018-07-09 16:09:20 +10:00
python_dependencies.py Correct attrs package name in requirements (#3492) 2018-07-07 10:46:59 +10:00
server.py run isort 2018-07-09 16:09:20 +10:00
server.pyi Send users a server notice about consent 2018-05-22 11:54:51 +01:00
state.py run isort 2018-07-09 16:09:20 +10:00
types.py run isort 2018-07-09 16:09:20 +10:00
visibility.py run isort 2018-07-09 16:09:20 +10:00