forked-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 use jsonschema.FormatChecker for RoomID and UserID strings 2017-03-23 11:42:41 -03:00
app Merge pull request #2107 from HarHarLinks/patch-1 2017-04-07 09:54:37 +01:00
appservice Add comment 2017-03-29 09:50:05 +01:00
config Merge pull request #2097 from matrix-org/erikj/repl_tcp_client 2017-04-05 09:36:21 +01:00
crypto Merge pull request #2050 from matrix-org/rav/federation_backoff 2017-03-23 22:27:01 +00:00
events Refactoring and cleanups 2017-03-17 15:06:07 +00:00
federation Don't double json encode federation replication data 2017-04-05 11:10:28 +01:00
handlers Merge pull request #2103 from matrix-org/erikj/no-double-encode 2017-04-07 09:39:52 +01:00
http try not to drop context after federation requests 2017-03-23 22:36:21 +00:00
metrics Rearrange metrics 2017-04-05 14:15:09 +01:00
push Merge pull request #2075 from matrix-org/erikj/cache_speed 2017-03-31 10:10:56 +01:00
replication Merge pull request #2103 from matrix-org/erikj/no-double-encode 2017-04-07 09:39:52 +01:00
rest Merge pull request #2011 from matrix-org/matthew/turn_allow_guests 2017-03-31 14:37:09 +01:00
static/client Updates to fallback CAS login to do new token login 2015-11-06 09:57:17 +00:00
storage Speed up get_current_state_ids 2017-04-07 10:10:49 +01:00
streams Add basic implementation of local device list changes 2017-01-25 14:27:27 +00:00
util Fix fixme in preserve_fn 2017-04-03 15:38:02 +01:00
__init__.py Bump version and changelog 2017-03-30 16:37:40 +01:00
event_auth.py Use better variable name 2017-01-17 14:32:53 +00:00
notifier.py Merge branch 'develop' of github.com:matrix-org/synapse into erikj/repl_tcp_server 2017-04-04 09:46:16 +01:00
python_dependencies.py Add jsonschema to python_dependencies.py 2017-03-23 11:42:47 -03:00
server.py Update all the workers and master to use TCP replication 2017-04-03 15:35:52 +01:00
server.pyi Fix login with m.login.token 2016-08-08 16:40:39 +01:00
state.py Merge pull request #1849 from matrix-org/erikj/state_typo 2017-03-29 11:53:42 +01:00
types.py Speed up copy_and_replace 2017-03-30 17:50:31 +01:00
visibility.py Don't convert to deferreds when not necessary 2017-03-30 14:14:36 +01:00