- Jul 17, 2018
-
-
Richard van der Hoff authored
-
Richard van der Hoff authored
Refactor and optimze filter_events_for_server
-
Richard van der Hoff authored
-
Amber Brown authored
-
Erik Johnston authored
Fix perf regression in PR #3530
-
Richard van der Hoff authored
-
Erik Johnston authored
-
Erik Johnston authored
-
Erik Johnston authored
-
Erik Johnston authored
The get_entities_changed function was changed to return all changed entities since the given stream position, rather than only those changed from a given list of entities. This resulted in the function incorrectly returning large numbers of entities that, for example, caused large increases in database usage.
-
Amber Brown authored
Don't return unknown entities in get_entities_changed
-
Amber Brown authored
check isort by travis
-
- Jul 16, 2018
-
-
Krombel authored
-
Richard van der Hoff authored
-
Richard van der Hoff authored
-
Richard van der Hoff authored
-
Krombel authored
-
Richard van der Hoff authored
for easier unit testing.
-
Krombel authored
-
- Jul 13, 2018
-
-
Amber Brown authored
-
Amber Brown authored
Use parse and asserts from http.servlet
-
Amber Brown authored
-
Amber Brown authored
-
Krombel authored
-
Krombel authored
the method "assert_params_in_request" does handle dicts and not requests. A request body has to be parsed to json before this method can be used
-
Krombel authored
parse_integer and parse_string can take a request and raise errors in case we have wrong or missing params. This PR tries to use them more to deduplicate some code and make it better readable
-
Erik Johnston authored
-
Richard van der Hoff authored
Make FederationRateLimiter queue requests properly
-
Richard van der Hoff authored
-
Richard van der Hoff authored
-
Richard van der Hoff authored
-
Richard van der Hoff authored
popitem removes the *most recent* item by default [1]. We want the oldest. Fixes #3524 [1]: https://docs.python.org/2/library/collections.html#collections.OrderedDict.popitem
-
Erik Johnston authored
-
Erik Johnston authored
The stream cache keeps track of all entities that have changed since a particular stream position, so get_entities_changed does not need to return unknown entites when given a larger stream position. This makes it consistent with the behaviour of has_entity_changed.
-
Matthew Hodgson authored
-
- Jul 12, 2018
-
-
Richard van der Hoff authored
Reduce set building in get_entities_changed
-
Richard van der Hoff authored
-
Richard van der Hoff authored
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.
-
Richard van der Hoff authored
Enforce the specified API for report_event
-
Richard van der Hoff authored
-