anonymousland-synapse/synapse
Erik Johnston d72667fcce Speed up get_current_state_ids
Using _simple_select_list is fairly expensive for functions that return
a lot of rows and/or get called a lot. (This is because it carefully
constructs a list of dicts).

get_current_state_ids gets called a lot on startup and e.g. when the IRC
bridge decided to send tonnes of joins/leaves (as it invalidates the
cache). We therefore replace it with a custon txn function that builds
up the final result dict without building up and intermediate
representation.
2017-04-07 10:10:49 +01:00
..
api
app
appservice
config
crypto
events
federation
handlers
http
metrics
push
replication
rest
static/client
storage Speed up get_current_state_ids 2017-04-07 10:10:49 +01:00
streams
util
__init__.py
event_auth.py
notifier.py
python_dependencies.py
server.py
server.pyi
state.py
types.py
visibility.py