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/handlers/saml_handler.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/handlers/saml_handler.py')
-rw-r--r-- | synapse/handlers/saml_handler.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/saml_handler.py b/synapse/handlers/saml_handler.py index 8715abd4d1..285c481a96 100644 --- a/synapse/handlers/saml_handler.py +++ b/synapse/handlers/saml_handler.py @@ -46,7 +46,7 @@ class MappingException(Exception): """Used to catch errors when mapping the SAML2 response to a user.""" -@attr.s +@attr.s(slots=True) class Saml2SessionData: """Data we track about SAML2 sessions""" |