Commit Graph

173 Commits (2ee9f1bd1a3b644afd27fef8aea76cca93a1c9e5)

Author SHA1 Message Date
Matthew Hodgson d6cc369205 fix idiotic typo in state res 7 years ago
Amber Brown c936a52a9e
Consistently use six's iteritems and wrap lazy keys/values in list() if they're not meant to be lazy (#3307) 7 years ago
Adrian Tschira 0e61705661 py3-ize state.py 7 years ago
Erik Johnston 01ccc9e6f2 Measure time it takes to calculate state group ID 7 years ago
Erik Johnston fde8e8f09f Fix s/iteriterms/itervalues 7 years ago
Erik Johnston 9cf519769b Use .iter* to avoid copies in StateHandler 7 years ago
Erik Johnston 3d33eef6fc
Store state groups separately from events (#2784) 7 years ago
Richard van der Hoff 447aed42d2 Add event_map param to resolve_state_groups 7 years ago
Richard van der Hoff 14737ba495 doc arg types for _seperate 7 years ago
Richard van der Hoff e15d4ea248 More docstring fixes 7 years ago
Richard van der Hoff a18828c129 Fix docstring for StateHandler.resolve_state_groups 7 years ago
Richard van der Hoff 6da4c4d3bd Factor out resolve_state_groups to a separate handler 7 years ago
Richard van der Hoff 0cbda53819 Rename resolve_state_groups -> resolve_state_groups_for_events 7 years ago
Richard van der Hoff adfc0c9539 docstring for get_current_state_ids 7 years ago
Richard van der Hoff d413a2ba98 Remove unused "event_type" param on state.get_current_state_ids 7 years ago
Richard van der Hoff 390093d45e Split resolve_events into two functions 7 years ago
Richard van der Hoff eaaabc6c4f replace 'except:' with 'except Exception:' 7 years ago
Richard van der Hoff 3ddda939d3 some comments in the state res code 7 years ago
Erik Johnston b5e8d529e6 Define CACHE_SIZE_FACTOR once 8 years ago
Erik Johnston 0185b75381 Change is_host_joined to use current_state table 8 years ago
Erik Johnston ea11ee09f3 Ensure we don't use unpersisted state group as prev group 8 years ago
Erik Johnston 6e2a7ee1bc Remove spurious log lines 8 years ago
Erik Johnston 350622a107 Handle the server leaving a public room 8 years ago
Erik Johnston 619e8ecd0c Handle None state group correctly 8 years ago
Erik Johnston dfbda5e025 Faster cache for get_joined_hosts 8 years ago
Erik Johnston 2b03751c3c Don't return weird prev_group 8 years ago
Erik Johnston dbc0dfd2d5 Remove unused options 8 years ago
Erik Johnston dfaa58f72d Fix comment and num args 8 years ago
Erik Johnston 7166854f41 Add cache for get_current_hosts_in_room 8 years ago
Richard van der Hoff 5068fb16a5 Refactoring and cleanups 8 years ago
Erik Johnston 41dab8a222 Fix bug where current_state_events renamed to current_state_ids 8 years ago
Erik Johnston 09eb08f910 Derive current_state_events from state groups 8 years ago
Erik Johnston 5f027d1fc5 Change resolve_state_groups call site logging to DEBUG 8 years ago
Erik Johnston ed4d176152 PEP8 8 years ago
Mark Haines c6064a7ba6 Only construct sets when necessary 8 years ago
Erik Johnston a8594fd19f Use better names 8 years ago
Erik Johnston ce59a2faad Correctly handle case of rejected events in state res 8 years ago
Erik Johnston 633f97151c Check event is in state_map 8 years ago
Erik Johnston 5d6bad1b3c Optimise state resolution 8 years ago
Erik Johnston 897f8752da Up cache max entries for state 8 years ago
Erik Johnston beda469bc6 Put staticmethods at module level 8 years ago
Erik Johnston 46aebbbcbf Add support for 'iterable' to ExpiringCache 8 years ago
Erik Johnston ec0a523ac3 Split out static state methods from StateHandler 8 years ago
Erik Johnston f7085ac84f Name linearizer's for better logs 8 years ago
Matthew Hodgson 4086026524 move logging to right place 8 years ago
Mark Haines c18f7fc410 Fix flake8 and update changelog 8 years ago
Matthew Hodgson d79d165761 add logging for all the places we call resolve_state_groups. my kingdom for a backtrace that actually works. 8 years ago
Erik Johnston 772c6067a3 Refactor public rooms to not pull out the full state for each room 8 years ago
Erik Johnston f2b2cd8eb4 Amalgamate two identical consecutive if statements 8 years ago
Erik Johnston d5ae1f1291 Ensure we don't mutate state cache entries 8 years ago