diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2020-09-14 12:50:06 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-14 12:50:06 -0400 |
commit | aec294ee0d0f2fa4ccef57085d670b8939de3669 (patch) | |
tree | be1bf0f3786c88287ef814b8434ae720058be1f9 /synapse/state/__init__.py | |
parent | Fix typos in comments. (diff) | |
download | synapse-aec294ee0d0f2fa4ccef57085d670b8939de3669.tar.xz |
Use slots in attrs classes where possible (#8296)
slots use less memory (and attribute access is faster) while slightly limiting the flexibility of the class attributes. This focuses on objects which are instantiated "often" and for short periods of time.
Diffstat (limited to 'synapse/state/__init__.py')
-rw-r--r-- | synapse/state/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/state/__init__.py b/synapse/state/__init__.py index c7e3015b5d..56d6afb863 100644 --- a/synapse/state/__init__.py +++ b/synapse/state/__init__.py @@ -678,7 +678,7 @@ def resolve_events_with_store( ) -@attr.s +@attr.s(slots=True) class StateResolutionStore: """Interface that allows state resolution algorithms to access the database in well defined way. |