- Jul 17, 2018
-
-
Benedikt Heine authored
It's much easier to build the image via docker-compose instead of an error-prone low-level docker call. Signed-off-by:
Benedikt Heine <bebe@bebehei.de>
-
Amber Brown authored
Don't return unknown entities in get_entities_changed
-
Amber Brown authored
check isort by travis
-
- Jul 16, 2018
- 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
-
Richard van der Hoff authored
-
Erik Johnston authored
Use stream cache in get_linearized_receipts_for_room
-
Erik Johnston authored
-
- Jul 10, 2018
-
-
Amber Brown authored
* Use more portable syntax using attrs package. Newer syntax attr.ib(factory=dict) is just a syntactic sugar for attr.ib(default=attr.Factory(dict)) It was introduced in newest version of attrs package (18.1.0) and doesn't work with older versions. We should either require minimum version of attrs to be 18.1.0, or use older (slightly more verbose) syntax. Requiring newest version is not a good solution because Linux distributions may have older version of attrs (17.4.0 in Fedora 28), and requiring to build (and package) newer version just to use newer syntactic sugar in only one test is just too much. It's much better to fix that test to use older syntax. Signed-off-by:
Oleg Girko <ol@infoserver.lv>
-
Amber Brown authored
-
Erik Johnston authored
-
Matthew Hodgson authored
-
Erik Johnston authored
-
Erik Johnston authored
This avoids us from uncessarily hitting the database when there has been no change for the room
-
Richard van der Hoff authored
Let's try to include time spent in the DB threads in the per-request/block cpu usage metrics.
-
Richard van der Hoff authored
Factor out the resource usage tracking out to a separate object, which can be passed around and copied independently of the logcontext itself.
-
Matthew Hodgson authored
-
Matthew Hodgson authored
-