diff options
author | Richard van der Hoff <richard@matrix.org> | 2018-01-11 22:40:51 +0000 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2018-01-16 15:49:42 +0000 |
commit | 44a498418c62a835aae9bff8550f844888b3ab84 (patch) | |
tree | 4b44e24ae72cb2459af91ca6471da98f895b9c2e /tests/config/__init__.py | |
parent | Merge pull request #2785 from matrix-org/rav/reorganise_metrics_again (diff) | |
download | synapse-44a498418c62a835aae9bff8550f844888b3ab84.tar.xz |
Optimise LoggingContext creation and copying
It turns out that the only thing we use the __dict__ of LoggingContext for is `request`, and given we create lots of LoggingContexts and then copy them every time we do a db transaction or log line, using the __dict__ seems a bit redundant. Let's try to optimise things by making the request attribute explicit.
Diffstat (limited to 'tests/config/__init__.py')
0 files changed, 0 insertions, 0 deletions